QUERY PLAN
GroupAggregate (cost=303.45..303.59 rows=6 width=36)
Group Key: pre_sales_id
-> Sort (cost=303.45..303.47 rows=9 width=9)
Sort Key: pre_sales_id
-> Seq Scan on tbl_reimbursements (cost=0.00..303.30 rows=9 width=9)
Filter: ((status <> 4) AND (status <> 0) AND (pre_sales_id = ANY ('{1801,1802,1816,1814,1812,1823,1826,1829,1828}'::integer[])))