QUERY PLAN
GroupAggregate (cost=37.55..37.57 rows=1 width=12)
Group Key: task_group_id
-> Sort (cost=37.55..37.56 rows=1 width=4)
Sort Key: task_group_id
-> Seq Scan on tbl_tasks (cost=0.00..37.55 rows=1 width=4)
Filter: ((task_group_id = ANY ('{194,192}'::integer[])) AND (status = 0))