Query editor
with uniqueHash AS (SELECT distinct tx_hash AS hash -- aggregate all tx hashes to use w/polygon.transactionsFROM nft.transfersWHERE contract_address = 0xF4e9CeC411Ad8F99eaf02D5952D24c791C78E6d7 -- .SWOOSH ID contractAND blockchain = 'polygon'AND block_date > TIMESTAMP '2022-11-06' -- Week prior to the .SWOOSH ID announcementAND block_date < TIMESTAMP '2024-03-09'), -- Cutoff date March 8, 2024gasSpent AS (SELECTsum(gas_used/1e18*gas_price) AS totalGasSpentFROM polygon.transactionsWHERE hash in (SELECT hash FROM uniqueHash) -- only pull hashes that include the .SWOOSH ID contract address)SELECT totalGasSpent FROM gasSpentORDER BY totalGasSpent DESC -- list gas spent from largest to smallestLIMIT 10000 -- only sum the top 10k TXs