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