Updated 2022-12-12
    with prevtable as (
    select
    date_trunc('month',block_timestamp)::date as date,
    'Flow' as chain,
    count(distinct tx_id) as "Prev # of Daily Tx",
    ("Prev # of Daily Tx"/43200) as "Prev Tx/Minute - TPM",
    ("Prev # of Daily Tx"/2592000) as "Prev Tx/Sec - TPS"
    from flow.core.fact_transactions
    where date_trunc(month,block_timestamp) between '2022-01-01' and '2022-01-31'
    group by 1,2

    union ALL

    select
    date_trunc('month',block_timestamp)::date as date,
    'Ethereum' as chain,
    count(distinct tx_hash) as "Prev # of Daily Tx",
    ("Prev # of Daily Tx"/43200) as "Prev Tx/Minute - TPM",
    ("Prev # of Daily Tx"/2592000) as "Prev Tx/Sec - TPS"
    from ethereum.core.fact_transactions
    where date_trunc(month,block_timestamp) between '2022-01-01' and '2022-01-31'
    group by 1,2

    union ALL

    select
    date_trunc('month',block_timestamp)::date as date,
    'Cosmos' as chain,
    count(distinct tx_id) as "Prev # of Daily Tx",
    ("Prev # of Daily Tx"/43200) as "Prev Tx/Minute - TPM",
    ("Prev # of Daily Tx"/2592000) as "Prev Tx/Sec - TPS"
    from cosmos.core.fact_transactions
    where date_trunc(month,block_timestamp) between '2022-01-01' and '2022-01-31'
    group by 1

    UNION ALL
    Run a query to Download Data