select
year, medals,
  sum(medals) over (order by year asc) as medal_rt
from medal_table