QUERY PLAN
GroupAggregate (cost=279.50..279.61 rows=5 width=36)
Group Key: pre_sales_id
-> Sort (cost=279.50..279.52 rows=6 width=9)
Sort Key: pre_sales_id
-> Seq Scan on tbl_reimbursements (cost=0.00..279.42 rows=6 width=9)
Filter: ((status <> 4) AND (status <> 0) AND (pre_sales_id = ANY ('{1829,1830,1825,1824,1836,1832}'::integer[])))