QUERY PLAN
GroupAggregate (cost=438.62..439.38 rows=43 width=12)
Group Key: project_id
-> Sort (cost=438.62..438.73 rows=44 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..437.42 rows=44 width=8)
Filter: (project_id = ANY ('{3037,3110,3126,3136,3137,3190,3203,3287,3329,3463,3957,4042,4097,4114,4120,4177}'::integer[]))