MLDZMNFSR2
    Updated 2022-12-13
    select
    date_trunc('{{Time_basis}}',date1) as date,
    'Osmosis' as blockchain,
    max (count_txn) as TPM_MAX,
    min (count_txn) as TPM_MIN,
    avg (count_txn) as TPM_Average
    from (
    select
    date_trunc('{{TPM_TPS}}', block_timestamp) as date1,
    count(tx_id) as count_txn
    from osmosis.core.fact_transactions
    where TX_STATUS ='SUCCEEDED'
    and block_timestamp >= '2022-01-01'
    group by 1
    )
    group by 1,2

    union all

    select
    date_trunc('{{Time_basis}}',date1) as date,
    'Flow' as blockchain,
    max (count_txn) as TPM_MAX,
    min (count_txn) as TPM_MIN,
    avg (count_txn) as TPM_Average
    from (
    select
    date_trunc('{{TPM_TPS}}', block_timestamp) as date1,
    count(tx_id) as count_txn
    from flow.core.fact_transactions
    where tx_succeeded = 'TRUE'
    and block_timestamp >= '2022-01-01'
    group by 1
    )
    group by 1,2

    Run a query to Download Data