QUERY PLAN
HashAggregate (cost=374.72..375.76 rows=104 width=12)
Group Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..374.17 rows=109 width=8)
Filter: (project_id = ANY ('{4146,4135,3954,3461,3488,3702,3699,3700,3451,3417}'::integer[]))