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