QUERY PLAN
Sort (cost=12.64..12.66 rows=6 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..12.56 rows=6 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{3843,3841,3840,3842,3845,3837,3836,3831,3844,3835}'::integer[])))