QUERY PLAN
Aggregate (cost=149.98..149.99 rows=1 width=8)
-> Seq Scan on tbl_tasks (cost=0.00..149.79 rows=77 width=0)
Filter: ((task_group_id = 78) AND (status = 1))