NuveveCryptoArchivedAverage Gas Usage By Token Type
    with dex_swaps as (
    select
    sum(transactions.tx_fee) as gas_eth,
    count(swaps.tx_hash) as tx_count
    from ethereum.core.ez_dex_swaps as swaps
    inner join ethereum.core.fact_transactions as transactions on swaps.tx_hash = transactions.tx_hash
    ),

    eth_transfers as (
    select
    concat('ETH') as token_type,
    sum(transactions.tx_fee)/count(transfers.tx_hash) as gas_eth
    from ethereum.core.ez_eth_transfers as transfers
    inner join ethereum.core.fact_transactions as transactions on transfers.tx_hash = transactions.tx_hash
    ),

    nft_mints as (
    select
    sum(transactions.tx_fee) as gas_eth,
    count(mints.tx_hash) as tx_count
    from ethereum.core.ez_nft_mints as mints
    inner join ethereum.core.fact_transactions as transactions on mints.tx_hash = transactions.tx_hash
    ),

    nft_sales as (
    select
    sum(transactions.tx_fee) as gas_eth,
    count(sales.tx_hash) as tx_count
    from ethereum.core.ez_nft_sales as sales
    inner join ethereum.core.fact_transactions as transactions on sales.tx_hash = transactions.tx_hash
    ),

    nft_transfers as (
    select
    sum(transactions.tx_fee) as gas_eth,
    count(transfers.tx_hash) as tx_count
    Run a query to Download Data