mattkstewCrossover with NBA Top Shot 3.5
    Updated 2022-06-27
    with m as (
    select
    distinct buyer


    from flow.core.fact_nft_sales
    where split(nft_collection,'.')[2] like '%TopShot%'

    )

    select
    split(nft_collection,'.')[2],
    sum(price),
    count(*)

    from flow.core.fact_nft_sales
    where split(nft_collection,'.')[2] not like '%TopShot%'
    and buyer in (select * from m)
    group by 1
    Run a query to Download Data