QUERY PLAN
GroupAggregate (cost=288.32..288.44 rows=5 width=36)
Group Key: pre_sales_id
-> Sort (cost=288.32..288.34 rows=7 width=9)
Sort Key: pre_sales_id
-> Seq Scan on tbl_reimbursements (cost=0.00..288.22 rows=7 width=9)
Filter: ((status <> 4) AND (status <> 0) AND (pre_sales_id = ANY ('{338,1661,1652,1649,1659,1656,1683}'::integer[])))