-- forked from Madi / comp @ https://flipsidecrypto.xyz/Madi/q/LsiMhwFJH4e1/comp
    with prices as (
    select
    date_trunc('day', hour) price_date,
    TOKEN_ADDRESS,
    SYMBOL,
    DECIMALS,
    avg(price) as price
    from
    ethereum.price.ez_hourly_token_prices
    group by
    1,
    2,
    3,
    4
    ),
    pr_weth as (
    select
    date_trunc('day', hour) price_day,
    avg(price) as price
    from
    ethereum.price.ez_hourly_token_prices
    where
    symbol = 'WETH'
    group by
    1
    ),
    pr_avax as (
    select
    date_trunc('day', hour) price_day,
    avg(price) as price
    from
    ethereum.price.ez_hourly_token_prices
    where
    symbol = 'WAVAX'
    group by
    Run a query to Download Data