QUERY PLAN
GroupAggregate (cost=61.74..61.88 rows=7 width=12)
Group Key: parent_id
-> Sort (cost=61.74..61.77 rows=9 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..61.60 rows=9 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{1347,1358,1359,1349,1350,1357,1356,1348,1338,1353}'::integer[])))