QUERY PLAN
Sort (cost=12.89..12.90 rows=5 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..12.83 rows=5 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4075,4071,4068,4065,4064,4055,4054,4050,4049,4061}'::integer[])))