QUERY PLAN
GroupAggregate (cost=62.68..62.98 rows=15 width=12)
Group Key: parent_id
-> Sort (cost=62.68..62.73 rows=20 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..62.25 rows=20 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{1596,1647,1734,1737,1727,58,63,76,67,64}'::integer[])))