QUERY PLAN
Sort (cost=18.39..18.41 rows=7 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..18.30 rows=7 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4253,4252,4235,4144,4112,4106,4055,3997,3978,3967,3935,3916,3900,3857,3803,3763,3755,3746,3725,3724}'::integer[])))