-- forked from 0x515299b1A2637181ec95a3EFEaa42A466195A40f / blend and blur bidding contract gas fees @ https://flipsidecrypto.xyz/0x515299b1A2637181ec95a3EFEaa42A466195A40f/q/blend-and-blur-bidding-gas-fees-wGgjOY
-- by @ethergc, discord.gg/farmer
SELECT SUM(tx_fee) AS "Total Gas Spent"
FROM ethereum.core.fact_transactions ft
WHERE from_address = LOWER('{{YOUR_ADDRESS}}') AND ft.to_address IN ('0x29469395eaf6f95920e59f858042f0e28d98a20b','0x0000000000a39bb272e79075ade125fd351887ac');