-> Seq Scan on tbl_approves r (cost=0.00..140.74 rows=20 width=390)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{3834,3832,3828,3826,3825,3824,3823,3821,3820,3819,3818,3817,3814,3810,3813,3806,3804,3802,3801,3800}'::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))