-> Seq Scan on tbl_approves r (cost=0.00..140.74 rows=21 width=390)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{3826,3824,3804,3799,3794,3798,3786,3675,3644,3624,3622,3590,3586,3587,3551,3684,3534,3532,3523,3518}'::integer[])))
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..8.31 rows=1 width=4)
Index Cond: ((object_id = r.id) AND (term_id = 17))