QUERY PLAN
GroupAggregate (cost=291.94..292.33 rows=22 width=12)
Group Key: project_id
-> Sort (cost=291.94..292.00 rows=22 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..291.45 rows=22 width=8)
Filter: (project_id = ANY ('{3957,3780,3846,3910}'::integer[]))