MLDZMNnft1
    Updated 2023-04-11
    with t1 as (
    select
    signers[0] as users
    from solana.core.fact_events
    where program_id = '4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg'
    )

    select
    b.PROJECT_NAME as NFTs,
    count(distinct purchaser) as no_users,
    count(distinct tx_id) as no_txn,
    sum(SALES_AMOUNT) as volume
    from solana.core.fact_nft_sales s left outer join solana.core.dim_nft_metadata b on s.mint=b.MINT
    where block_timestamp>='2023-02-08'
    and purchaser in (select users from t1)
    and SUCCEEDED='TRUE' and NFTs is not null
    group by 1
    order by 2 desc limit 10
    Run a query to Download Data