QUERY PLAN
HashAggregate (cost=58.82..58.97 rows=15 width=12)
Group Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..58.70 rows=25 width=4)
Filter: (parent_id = ANY ('{1596,1647,1686,1641,1652,1697,1696,1687,1684,1683}'::integer[]))