Query editor
WITH data AS (SELECTblock_date,COALESCE(SUM(gas_used), 0) AS gas_used,COALESCE(SUM(tx_fee), 0) AS tx_fee_native, /* corrected column name from tx_fee_native to tx_fee */COALESCE(SUM(tx_fee_usd), 0) AS tx_fee_usd,COUNT(*) AS txsFROM hex_ethereum.HEX_call_stakeEnd AS endsJOIN gas.fees AS fON ends.call_tx_hash = f.tx_hashWHEREf.blockchain = 'ethereum' /* added table alias for blockchain */GROUP BYblock_dateORDER BYblock_date)SELECTblock_date,SUM(gas_used) OVER (ORDER BY block_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS gas_used,SUM(tx_fee_native) OVER (ORDER BY block_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS tx_fee_native,SUM(tx_fee_usd) OVER (ORDER BY block_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS tx_fee_usdFROM data