QUERY PLAN
HashAggregate (cost=330.27..331.34 rows=107 width=12)
Group Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=114 width=8)
Filter: (project_id = ANY ('{3786,1111,1018,3809,3801,3577,3807,3810,3808,3751}'::integer[]))