QUERY PLAN
GroupAggregate (cost=472.38..472.64 rows=15 width=12)
Group Key: case_id
-> Sort (cost=472.38..472.41 rows=15 width=4)
Sort Key: case_id
-> Seq Scan on tbl_implement_records (cost=0.00..472.08 rows=15 width=4)
Filter: ((NOT is_draft) AND (case_id = ANY ('{9250,9240,9247,9244,9239,9237,9238,9236,9235,9229,9233,9232,9230,9228,9222}'::integer[])))