0xHaM-dOver Time Onboarding Users to Top 10 Projects vs. Other Projects
    Updated 2024-10-21
    with projectsTb as (
    select
    address,
    project_name as project,
    label_type
    from
    near.core.dim_address_labels
    where
    project_name is not null
    and label_type not in ('chadmin', 'cex', 'token', 'fungible_token')
    and project_name != 'Exchanges'
    ),
    new_usersTb as (
    select
    tx_signer,
    min(block_timestamp) as onboarding_timestamp
    from
    near.core.fact_transactions
    where
    tx_signer not in (
    select
    address
    from
    projectsTb
    )
    and TX_SUCCEEDED = 'True' --qualify rank = 1
    GROUP BY
    1
    ),
    top10_procets_new_usr as (
    select
    project,
    count(distinct t.tx_signer) as projects_new_usrs
    FROM
    near.core.fact_transactions t
    JOIN new_usersTb u on (
    QueryRunArchived: QueryRun has been archived