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 ('{4132,1044,1414,2286,2447,1866,3493,1541,765,229}'::integer[])))