Updated 2023-01-20
    select
    date_trunc('day', BLOCK_TIMESTAMP) as day,
    'Optimism' as network,
    count (distinct sender) as new_users
    from
    (
    select
    distinct FROM_ADDRESS as sender,
    min(block_timestamp) as BLOCK_TIMESTAMP
    from
    Optimism.core.fact_transactions
    WHERE
    tx_hash is not null
    and STATUS = 'SUCCESS'
    group by
    1
    )
    where
    day >= CURRENT_DATE - 60
    group by
    1
    union all
    select
    date_trunc('day', BLOCK_TIMESTAMP) as day,
    'Arbitrum' as network,
    count (distinct sender) as new_users
    from
    (
    select
    distinct FROM_ADDRESS as sender,
    min(block_timestamp) as BLOCK_TIMESTAMP
    from
    Arbitrum.core.fact_transactions
    WHERE
    tx_hash is not null
    and STATUS = 'SUCCESS'
    Run a query to Download Data