-> Seq Scan on tbl_approves r (cost=0.00..258.55 rows=21 width=388)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4063,4038,4031,4017,4004,3893,3845,3807,3784,3780,3722,3690,3653,3631,3561,3515,3499,3424,3411,3480}'::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))