QUERY PLAN
GroupAggregate (cost=407.13..407.75 rows=35 width=12)
Group Key: project_id
-> Sort (cost=407.13..407.22 rows=36 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..406.20 rows=36 width=8)
Filter: (project_id = ANY ('{4184,4182,4185,4183,4181,4173,4171,4152,4150,4158,2939,4179,4175}'::integer[]))