QUERY PLAN
GroupAggregate (cost=62.42..62.58 rows=9 width=12)
Group Key: parent_id
-> Sort (cost=62.42..62.44 rows=10 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..62.25 rows=10 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{346,347,355,413,796,850,1535,1536,1537,1550}'::integer[])))