QUERY PLAN
HashAggregate (cost=374.82..376.04 rows=122 width=12)
Group Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..374.17 rows=129 width=8)
Filter: (project_id = ANY ('{263,1111,2504,1791,4111,1972,3910,3577,3873,4055}'::integer[]))