QUERY PLAN
GroupAggregate (cost=331.79..332.07 rows=16 width=12)
Group Key: project_id
-> Sort (cost=331.79..331.83 rows=16 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..331.47 rows=16 width=8)
Filter: (project_id = ANY ('{4184,4182,4173,4167,4166,3703}'::integer[]))