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