QUERY PLAN
GroupAggregate (cost=263.82..263.96 rows=8 width=12)
Group Key: project_id
-> Sort (cost=263.82..263.84 rows=8 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..263.70 rows=8 width=8)
Filter: (project_id = ANY ('{3805,3814,3811}'::integer[]))