QUERY PLAN
Sort (cost=15.66..15.68 rows=7 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..15.56 rows=7 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{3853,3642,3449,3356,3297,3240,3214,3116,3099,3074,3073,2979,2845,2972,2835}'::integer[])))