germanCopy of success rate
    Updated 2022-12-12
    /* how has Flow increased its speed in transaction per minute since?
    identify the monthly average for transactions per minute
    how that's improved or worsened since the beginning of 2022.*/

    SELECT
    'Flow' as chain,
    date_trunc('week', block_timestamp) as week,
    avg(gas_limit) as avg_fee
    FROM flow.core.fact_transactions
    WHERE block_timestamp >= '2022-01-01'
    AND block_timestamp::date != current_date
    GROUP BY 1,2

    UNION ALL

    SELECT
    'Polygon' as chain,
    date_trunc('week', block_timestamp) as week,
    avg(gas_limit) as avg_fee
    FROM polygon.core.fact_transactions
    WHERE block_timestamp >= '2022-01-01'
    AND block_timestamp::date != current_date
    GROUP BY 1,2

    UNION ALL

    SELECT
    'BNB chain' as chain,
    date_trunc('week', block_timestamp) as week,
    avg(gas_limit) as avg_fee
    FROM bsc.core.fact_transactions
    WHERE block_timestamp >= '2022-01-01'
    AND block_timestamp::date != current_date
    GROUP BY 1,2

    UNION ALL
    Run a query to Download Data