boomer77top 5 nft by platform
    Updated 2023-08-30
    with raw as (select *,
    case when project_name is null then nft_address else project_name end as projz
    from ethereum.core.ez_nft_sales
    where date(block_timestamp) >= current_date - 31
    and price_usd > 0),

    rank as (select platform_name, projz,
    sum(price_usd) as vol_usd,
    ROW_NUMBER() OVER (PARTITION BY platform_name ORDER BY vol_usd desc) as rank
    from raw
    group by 1,2)

    select platform_name, projz as project_name, rank, vol_usd
    from rank
    where rank <= 5
    Run a query to Download Data