-> Seq Scan on tbl_approves r (cost=0.00..187.32 rows=21 width=407)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4141,4133,4128,4127,4126,4124,4123,4122,4121,4119,4115,4110,4108,4107,4104,4103,4102,4101,4098,4100}'::integer[])))
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..8.12 rows=1 width=4)
Index Cond: ((object_id = r.id) AND (term_id = 17))