-> Seq Scan on tbl_approves r (cost=0.00..233.59 rows=20 width=467)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4398,4401,4397,4395,4391,4416,4392,4387,4389,4384,4382,4380,4379,4376,4372,4370,4369,4368,4367,4365}'::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))