MoDeFi#NEAR Q5- Performance 2
    Updated 2022-07-20
    with near_txs_pm as
    (select date_minute::date as date, avg(txs_minute) as near_avg_txs
    from
    (SELECT date_trunc('minute',BLOCK_TIMESTAMP) as date_minute, count(distinct TXN_HASH) as txs_minute
    FROM flipside_prod_db.mdao_near.transactions
    where BLOCK_TIMESTAMP>='2022-01-01'
    group by date_minute)
    group by date),

    sol_txs_pm as
    (select date_minute::date as date, avg(txs_minute) as sol_avg_txs
    from
    (SELECT date_trunc('minute',BLOCK_TIMESTAMP) as date_minute, sum(1) as txs_minute
    FROM solana.core.fact_transactions
    where BLOCK_TIMESTAMP>='2022-01-01'
    group by date_minute)
    group by date),

    eth_txs_pm as
    (select date_minute::date as date, avg(txs_minute) as eth_avg_txs
    from
    (SELECT date_trunc('minute',BLOCK_TIMESTAMP) as date_minute, count(distinct TX_HASH) as txs_minute
    FROM ethereum.core.fact_transactions
    where BLOCK_TIMESTAMP>='2022-01-01'
    group by date_minute)
    group by date),

    flow_txs_pm as
    (select date_minute::date as date, avg(txs_minute) as flow_avg_txs
    from
    (SELECT date_trunc('minute',BLOCK_TIMESTAMP) as date_minute, count(distinct TX_ID) as txs_minute
    FROM flow.core.fact_transactions
    where BLOCK_TIMESTAMP>='2022-01-01'
    group by date_minute)
    group by date),

    Run a query to Download Data