QUERY PLAN
HashAggregate (cost=54.16..54.31 rows=15 width=12)
Group Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..54.05 rows=22 width=4)
Filter: (parent_id = ANY ('{1596,1647,1734,1741,1740,1727}'::integer[]))