QUERY PLAN
GroupAggregate (cost=292.28..292.54 rows=15 width=12)
Group Key: project_id
-> Sort (cost=292.28..292.32 rows=15 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..291.99 rows=15 width=8)
Filter: (project_id = ANY ('{3739,3692,3493,3297,3375,110}'::integer[]))