Moeggf7
    Updated 2023-04-25
    with
    tb1 as (
    select
    recorded_at::date as day,
    avg(price) as price_token
    from
    osmosis.core.dim_prices
    where
    symbol = 'OSMO'
    group by
    1
    ),
    tb2 as (
    select
    recorded_at::date as day,
    avg(price) as price_token
    from
    osmosis.core.dim_prices
    where
    symbol = 'ATOM'
    group by
    1
    ),
    tb3 as (
    select
    date_trunc('day', HOUR) as day,
    avg(PRICE) as price_token
    from
    crosschain.core.ez_hourly_prices
    where
    SYMBOL = 'luna'
    group by 1
    )
    select
    date_trunc('week', block_timestamp) as date,
    Run a query to Download Data