h4wkFlow vs L1 2
    Updated 2022-05-30
    -- Q3. Create a dashboard comparing the following metrics between Flow, Solana, Ethereum, and Algorand.
    -- Visualize these metrics over time since May 9th.

    -- -Number of transactions
    -- -Transaction success rates
    -- -Number of unique wallets to make a transaction
    -- -Number of wallets that used the chain everyday since May 9th
    -- -Transaction fees

    -- How does Flow compare to these other chains and how do you think it will trend over time?

    with flow as (
    select *, "'Success'"/("'Success'"+"'Fail'") * 100 as Success_rate from (
    select date_trunc(day, block_timestamp) as date,
    count(*) as tx_count,
    case when tx_succeeded = TRUE then 'Success'
    else 'Fail' end as failure,
    'Flow' as type
    from flow.core.fact_transactions
    where block_timestamp::date >= '2022-05-09' and block_timestamp::date < CURRENT_DATE()
    group by date, type, failure
    ) pivot(sum(tx_count) for failure in ('Success', 'Fail')) as p
    )
    , solana as (
    select *, "'Success'"/("'Success'"+"'Fail'") * 100 as Success_rate from (
    select date_trunc(day, block_timestamp) as date,
    count(*) as tx_count,
    case when SUCCEEDED = TRUE then 'Success'
    else 'Fail' end as failure,
    'Solana' as type
    from flipside_prod_db.solana.fact_transactions
    where block_timestamp::date >= '2022-05-09' and block_timestamp::date < CURRENT_DATE()
    group by date, type, failure
    ) pivot(sum(tx_count) for failure in ('Success', 'Fail')) as p
    )
    , ethereum as (
    Run a query to Download Data