MLDZMNmgf17
    Updated 2023-03-14
    with t1 as (select
    distinct SIGNERS[0] as u_mf
    from solana.core.fact_events
    where SUCCEEDED='TRUE'
    and PROGRAM_ID in ('So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo')
    )
    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 u_mf 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