yasmin-n-d-r-hafter op nft merry
    Updated 2023-01-14
    with price as (
    select
    date(hour) as p_date,
    symbol,
    avg(price) as prices
    from
    optimism.core.fact_hourly_token_prices
    where
    symbol in (
    select
    CURRENCY_SYMBOL
    from
    optimism.core.ez_nft_sales
    where
    PLATFORM_NAME = 'quixotic'
    )
    and hour :: date between '2022-12-31' and '2023-01-15'
    group by
    1,
    2
    UNION
    select
    date(hour) as p_date,
    'ETH' as symbol,
    avg(price) as prices
    from
    ethereum.core.fact_hourly_token_prices
    where
    symbol = 'WETH'
    and hour :: date between '2022-12-31' and '2023-01-15'
    group by
    1,
    2
    ),
    price_usd as (
    select
    Run a query to Download Data