-> Seq Scan on tbl_approves r (cost=0.00..231.18 rows=20 width=471)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4482,4477,4475,4474,4472,4469,4466,4442,4436,4437,4434,4428,4429,4419,4418,4383,4371,4346,4345,4337}'::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))