QUERY PLAN
GroupAggregate (cost=43.38..43.40 rows=1 width=12)
Group Key: task_group_id
-> Sort (cost=43.38..43.39 rows=1 width=4)
Sort Key: task_group_id
-> Seq Scan on tbl_tasks (cost=0.00..43.37 rows=1 width=4)
Filter: ((task_group_id = ANY ('{196,195}'::integer[])) AND (status = 0))