QUERY PLAN
Sort (cost=12.86..12.86 rows=3 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..12.83 rows=3 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4159,4073,3805,3796,3699,3497,2941,2766,2747,2516}'::integer[])))