bachiflow nft1
    Updated 2022-10-27

    select
    count(distinct nft_id) as no_of_nfts_sold,
    round(sum(price),2) as total_sale_volume,
    round(avg(price),2) as avg_sale_volume,
    count(distinct tx_id) as no_of_sales,
    count(distinct buyer) as no_of_buyers,
    count(distinct seller) as no_of_sellers,
    nft_collection
    from flow.core.dim_contract_labels
    inner join flow.core.ez_nft_sales
    on event_contract=nft_collection
    where contract_name like '%RaceDay_NFT%'
    or contract_name like '%CricketMoments%'
    or contract_name like '%TopShot%'
    or contract_name like '%AllDay%'
    or contract_name like '%RaribleNFT%'
    or contract_name like '%MFLPlayer%'
    and tx_succeeded = true
    group by nft_collection
    Run a query to Download Data