QUERY PLAN
Sort (cost=18.09..18.12 rows=12 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..17.88 rows=12 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{3843,3841,3840,3844,3803,3763,3755,3746,3725,3724,3703,3661,3620,3525,3598,3550,3549,3537,3502,3493}'::integer[])))