QUERY PLAN
GroupAggregate (cost=75.96..76.21 rows=11 width=12)
Group Key: parent_id
-> Sort (cost=75.96..76.01 rows=18 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..75.59 rows=18 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{9,17,23,10,34,12,11,52,15,58,62,57,63,61,54,48,74,76,75,71}'::integer[])))