QUERY PLAN
Sort (cost=12.98..12.98 rows=2 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..12.97 rows=2 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4443,4446,4444,4430,4426,4433,4424,4422,4417,4414}'::integer[])))