QUERY PLAN
GroupAggregate (cost=353.56..354.64 rows=61 width=12)
Group Key: project_id
-> Sort (cost=353.56..353.72 rows=63 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=63 width=8)
Filter: (project_id = ANY ('{3927,3807,3580,3666,3461,3949,3827,3751,3931,3902}'::integer[]))