QUERY PLAN
Aggregate (cost=47.57..47.58 rows=1 width=8)
-> Seq Scan on tbl_tasks (cost=0.00..47.49 rows=33 width=4)
Filter: ((parent_id IS NULL) AND (task_group_id = 12))