mattkstewNFTs in 2022 3.5
    Updated 2023-01-05
    with tab1 as (
    select
    project_name,
    sum(price_usd)

    from ethereum.core.ez_nft_sales
    where price_usd is not null
    and project_name is not null
    and price_usd < 500000000
    group by 1
    order by 2 desc
    limit 150 )


    , tab2 as (
    select
    project_name,
    sum(price_usd) as old_price

    from ethereum.core.ez_nft_sales
    where project_name in (select project_name from tab1)
    and block_timestamp between '2022-01-01' and '2022-02-01'
    group by 1
    )

    , tab3 as (
    select
    project_name,
    sum(price_usd) as current_price
    from ethereum.core.ez_nft_sales
    where project_name in (select project_name from tab1)
    and block_timestamp between '2022-12-01' and '2023-01-01'
    group by 1 )


    Run a query to Download Data