QUERY PLAN
GroupAggregate (cost=55.61..55.78 rows=9 width=12)
Group Key: parent_id
-> Sort (cost=55.61..55.64 rows=11 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..55.42 rows=11 width=4)
Filter: (parent_id = ANY ('{1596,1734,1751,1750,1747,1746,1727}'::integer[]))