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 ('{3815,3786,3805,1018,3811,3404,1111,3814,3804,3800}'::integer[]))