mlhcomparing monthly avg count of transactions per minute in chains
    Updated 2022-12-12
    with Algorand as (select date_trunc('month', block_timestamp) as month,
    count (distinct tx_id) /43200 as trx_per_min
    from algorand.core.fact_transaction
    where block_timestamp >= '2022-01-01'
    group by 1
    ),

    ethereum as (select date_trunc('month', block_timestamp) as month,
    count (distinct tx_hash) /43200 as trx_per_min
    from ethereum.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1
    ),

    flow as (select date_trunc('month', block_timestamp) as month,
    count (distinct tx_id) /43200 as trx_per_min
    from flow.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1
    ),
    near as (select date_trunc('month', block_timestamp) as month,
    count (distinct tx_hash) /43200 as trx_per_min
    from near.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1
    )

    select *, 'Algorand' as Chain from algorand union
    select *, 'Ethereum' as Chain from ethereum union
    select *, 'Flow' as Chain from flow union
    select *, 'Near' as Chain from near
    Run a query to Download Data