QUERY PLAN
Sort (cost=12.87..12.88 rows=4 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..12.83 rows=4 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4130,4129,4120,4112,4131,4111,4109,4106,4099,4094}'::integer[])))