QUERY PLAN
GroupAggregate (cost=366.66..366.71 rows=3 width=12)
Group Key: case_id
-> Sort (cost=366.66..366.67 rows=3 width=4)
Sort Key: case_id
-> Seq Scan on tbl_implement_records (cost=0.00..366.63 rows=3 width=4)
Filter: ((NOT is_draft) AND (case_id = ANY ('{9259,9256,9255}'::integer[])))