PredictionArbitrum Categories OLD
    with total_gas_fees_today_ETH as (
    SELECT
    sum(tx_fee) as gas_fees_total_today_ETH
    FROM arbitrum.core.fact_transactions
    WHERE block_timestamp > current_date - 1
    and status LIKE 'SUCCESS'
    ),

    total_gas_fees_yesterday_ETH as (
    SELECT
    sum(tx_fee) as gas_fees_total_yesterday_ETH
    FROM arbitrum.core.fact_transactions
    WHERE block_timestamp BETWEEN current_date - 2 and current_date - 1
    and status LIKE 'SUCCESS'
    ),

    total_gas_fees_week_ETH as (
    SELECT
    AVG(gas_fees_total_week_ETH) as gas_fees_total_AVG_week_ETH
    FROM (
    SELECT
    date_trunc('day', block_timestamp) as day,
    SUM(tx_fee) as gas_fees_total_week_ETH
    FROM arbitrum.core.fact_transactions
    WHERE block_timestamp BETWEEN current_date - 8 AND current_date - 1
    and status LIKE 'SUCCESS'
    GROUP BY day
    )
    ),

    total_gas_fees_month_ETH as (
    SELECT
    AVG(gas_fees_total_month_ETH) as gas_fees_total_AVG_month_ETH
    FROM (
    SELECT
    date_trunc('day', block_timestamp) as day,
    Run a query to Download Data