QUERY PLAN
Sort (cost=18.56..18.58 rows=5 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..18.51 rows=5 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4349,4291,4285,4257,4248,4324,4323,4235,4144,4112,4106,4055,4016,3997,3967,3935,3916,3900,3857,3803}'::integer[])))