MLDZMNChamp11
    Updated 2022-10-10
    select
    s.mint,
    case
    when LABEL ilike '%collectorz club%' then 'Collectorz Club'
    when LABEL ilike '%Suites%' then 'Suites'
    when LABEL ilike '%laidback lions%' then 'Laidback Lions'
    else null end as Sport_NFTs,
    sum(SALES_AMOUNT) as volume
    --avg(SALES_AMOUNT) as average_volume

    from solana.core.fact_nft_sales s left outer join solana.core.dim_labels b on s.mint=b.address
    where SUCCEEDED='TRUE'
    group by 1,2 having Sport_NFTs is not null
    order by 3 desc limit 10
    Run a query to Download Data