QUERY PLAN
GroupAggregate (cost=159.10..159.20 rows=5 width=12)
Group Key: parent_id
-> Sort (cost=159.10..159.12 rows=7 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..159.00 rows=7 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{701,700,699,697,747,746,741,698}'::integer[])))