select
hour::date as day,
avg (price) as price_usd,
avg (price_usd) over (order by day rows between 6 preceding and current row) as moving_average_1_week
from ethereum.core.fact_hourly_token_prices
where token_address = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84' --stETH
and year(day) >= 2022
group by day
order by day asc