superflyTotal number of new users on Arbitrum in 2023
    Updated 2023-01-14
    with arbi_old as (select distinct(from_address) as arbi_old_users
    from arbitrum.core.fact_transactions
    where block_timestamp <= current_date - 13),

    opti_old as (select distinct(from_address) as opti_old_users
    from optimism.core.fact_transactions
    where block_timestamp <= current_date - 13),

    avax_old as (select distinct(from_address) as avax_old_users
    from avalanche.core.fact_transactions
    where block_timestamp <= current_date - 13)

    select 'Arbitrum',
    count(distinct(from_address)) as new_user_count
    from arbitrum.core.fact_transactions
    where from_address not in (select arbi_old_users from arbi_old)
    union
    select 'Optimism',
    count(distinct(from_address))
    from optimism.core.fact_transactions
    where from_address not in (select opti_old_users from opti_old)
    union
    select 'Avalanche',
    count(distinct(from_address))
    from avalanche.core.fact_transactions
    where from_address not in (select avax_old_users from avax_old)
    Run a query to Download Data