QUERY PLAN
GroupAggregate (cost=162.22..162.38 rows=7 width=12)
Group Key: parent_id
-> Sort (cost=162.22..162.25 rows=12 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..162.00 rows=12 width=4)
Filter: (parent_id = ANY ('{1224,1223,1222,1221,1211,1210,1209,1247,1215,1195,1256,1216}'::integer[]))