QUERY PLAN
GroupAggregate (cost=0.00..279.69 rows=114 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..277.89 rows=132 width=8)
Filter: (client_id = 518)