-> Seq Scan on tbl_approves r (cost=0.00..258.55 rows=20 width=388)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4081,4080,4079,4077,4074,4072,4070,4069,4067,4066,4063,4062,4060,4059,4058,4057,4053,4052,4051,4045}'::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))