h4wkFlow vs L1 5
    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 date_trunc(day, block_timestamp) as date,
    -- count(*) as tx_count,
    -- '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
    -- )
    with flow as (
    select date_trunc(day, block_timestamp) as date,
    -- DATA in DB is not clean.. so I will use 0.00001 instead of sum
    -- avg(TRANSACTION_RESULT:events[3]:value:fields[0] + TRANSACTION_RESULT:events[3]:value:fields[1] + TRANSACTION_RESULT:events[3]:value:fields[2]) as avg_fee,
    avg(0.00001) as fee,
    '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
    )
    , solana as (
    select date_trunc(day, block_timestamp) as date,
    avg(fee/pow(10,9)) as avg_fee,
    'SOL' 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
    Run a query to Download Data