begin;
insert into teamshalf
select yearid, null, teamid, half, null, null, "rank", sum(g), sum(w), sum(l)
from managershalf
where yearid = 1892
group by yearid, teamid, half;
commit;
