Moe5-3 tp.sht-team tot
    Updated 2022-10-14
    select
    date_trunc(week,block_timestamp)::date as weeks,
    y.team,
    count(distinct BUYER) as buyer_count,
    row_number()over(partition by weeks order by buyer_count desc) as n
    /*count(tx_id) as sale_count,
    count(BUYER) as buyer_count,
    count(SELLER) as seller_count*/
    from flow.core.fact_nft_sales x left outer join flow.core.dim_topshot_metadata y on x.NFT_ID=y.NFT_ID
    where TX_SUCCEEDED='TRUE'
    and x.NFT_COLLECTION='A.0b2a3299cc857e29.TopShot'
    and team is not null
    group by 1,2
    qualify n <= 5

    Run a query to Download Data