misaghlbFLOW User Retention vs Other Chains - active users
    Updated 2022-12-18
    with raw_data as (
    SELECT
    'Optimism' as chain,
    date_trunc('month', BLOCK_TIMESTAMP) as date,
    COUNT(DISTINCT FROM_ADDRESS) as active_users
    from optimism.core.fact_transactions
    where date >= to_date('2022-05-01')
    GROUP by date


    UNION

    SELECT
    'Solana' as chain,
    date_trunc('month', BLOCK_TIMESTAMP) as date,
    COUNT(DISTINCT SIGNERS[0]) as active_users
    from solana.core.fact_transactions
    where date >= to_date('2022-05-01')
    GROUP by date

    UNION

    SELECT
    'Polygon' as chain,
    date_trunc('month', BLOCK_TIMESTAMP) as date,
    COUNT(DISTINCT FROM_ADDRESS) as active_users
    from polygon.core.fact_transactions
    where date >= to_date('2022-05-01')
    GROUP by date

    UNION

    SELECT
    'Arbitrum' as chain,
    date_trunc('month', BLOCK_TIMESTAMP) as date,
    COUNT(DISTINCT FROM_ADDRESS) as active_users
    Run a query to Download Data