QUERY PLAN
Aggregate (cost=150.01..150.02 rows=1 width=8)
-> Seq Scan on tbl_tasks (cost=0.00..150.00 rows=5 width=4)
Filter: ((parent_id IS NULL) AND (id <> 1615) AND (task_group_id = 214))