MLDZMNsector2
    Updated 2024-01-09
    select
    date_trunc('week', first_transaction_stamp) as date,
    LABEL_TYPE,
    count (distinct sender) as new_users
    from (
    select
    LABEL_TYPE,
    signers[0] as sender,
    min(block_timestamp) as first_transaction_stamp
    from solana.core.fact_events t join solana.core.dim_labels l on t.PROGRAM_ID = l.address
    where t.block_timestamp>= current_date- interval '4 months'
    and l.label_subtype != 'token_contract'
    and l.LABEL_TYPE in ('defi','nft','dex','dapp','bridge','layer2')
    and l.label != 'solana'
    and t.succeeded = TRUE
    group by 1,2
    )
    group by 1,2
    QueryRunArchived: QueryRun has been archived