QUERY PLAN
GroupAggregate (cost=24.32..24.44 rows=5 width=40)
Group Key: product_id, erp_store_id
-> Sort (cost=24.32..24.34 rows=5 width=11)
Sort Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..24.27 rows=5 width=11)
Filter: ((inventory > '0'::numeric) AND (product_id = ANY ('{2171,2261,1562,2177,1958,1959,2268,2256,941,1484,853,2204,884}'::integer[])))