-> Seq Scan on tbl_approves r (cost=0.00..233.59 rows=20 width=467)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4435,4432,4427,4431,4425,4423,4421,4420,4415,4413,4412,4411,4410,4409,4407,4406,4405,4404,4403,4402}'::integer[])))
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..8.11 rows=1 width=4)
Index Cond: ((object_id = r.id) AND (term_id = 17))