mz0111EVM 4
    Updated 2023-02-04
    (select
    date_trunc('day', min_date) as date,
    'OPTIMISM' as chain,
    count(*) as New_users,
    sum(New_users) over (order by date) as Cum_new_user
    from (
    select
    from_address,
    min(block_timestamp) as min_date
    from optimism.core.fact_transactions
    group by 1
    )
    where date > current_date - 90
    group by 1
    order by 1)

    union all


    (select
    date_trunc('day', min_date) as date,
    'ARBITRUM' as chain,
    count(*) as New_users,
    sum(New_users) over (order by date) as Cum_new_user
    from (
    select
    from_address,
    min(block_timestamp) as min_date
    from arbitrum.core.fact_transactions
    group by 1
    )
    where date > current_date - 90
    group by 1
    order by 1)


    Run a query to Download Data