QUERY PLAN
GroupAggregate (cost=374.53..375.17 rows=36 width=12)
Group Key: project_id
-> Sort (cost=374.53..374.62 rows=37 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..373.56 rows=37 width=8)
Filter: (project_id = ANY ('{3854,4133,4165,4109,4132,3695,3977,3559,3124,3132}'::integer[]))