QUERY PLAN
GroupAggregate (cost=0.00..290.99 rows=139 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..288.76 rows=167 width=8)
Filter: (client_id = 982)