QUERY PLAN
GroupAggregate (cost=156.12..156.24 rows=6 width=12)
Group Key: parent_id
-> Sort (cost=156.12..156.14 rows=8 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..156.00 rows=8 width=4)
Filter: (parent_id = ANY ('{701,700,699,697,747,746,741,698}'::integer[]))