QUERY PLAN
GroupAggregate (cost=50.95..51.03 rows=4 width=12)
Group Key: parent_id
-> Sort (cost=50.95..50.96 rows=5 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..50.89 rows=5 width=4)
Filter: (parent_id = ANY ('{1646,1685,1682,1681,1680}'::integer[]))