QUERY PLAN
Sort (cost=11.01..11.02 rows=4 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..10.97 rows=4 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{3649,3636,3170,2732,2733,2551,2014}'::integer[])))