QUERY PLAN
Sort (cost=10.21..10.21 rows=2 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..10.20 rows=2 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4497,4074,3705,3679,3325}'::integer[])))