QUERY PLAN
GroupAggregate (cost=59.36..59.48 rows=6 width=12)
Group Key: parent_id
-> Sort (cost=59.36..59.38 rows=8 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..59.24 rows=8 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{1693,1688,1692,1691,1690,1689,1651,1650,1648}'::integer[])))