QUERY PLAN
GroupAggregate (cost=312.20..312.36 rows=7 width=36)
Group Key: pre_sales_id
-> Sort (cost=312.20..312.22 rows=10 width=9)
Sort Key: pre_sales_id
-> Seq Scan on tbl_reimbursements (cost=0.00..312.03 rows=10 width=9)
Filter: ((status <> 4) AND (status <> 0) AND (pre_sales_id = ANY ('{1801,1802,1816,1814,1812,1823,1826,1829,1828,1835}'::integer[])))