QUERY PLAN
Sort (cost=11.56..11.57 rows=5 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..11.50 rows=5 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{3437,3316,3015,2788,2690,2487,2498,2260}'::integer[])))