QUERY PLAN
GroupAggregate (cost=357.86..357.89 rows=2 width=12)
Group Key: case_id
-> Sort (cost=357.86..357.87 rows=2 width=4)
Sort Key: case_id
-> Seq Scan on tbl_implement_records (cost=0.00..357.85 rows=2 width=4)
Filter: ((NOT is_draft) AND (case_id = ANY ('{9259,9253}'::integer[])))