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 (SELECTgas_used/1e18*gas_price AS totalGasSpent,gas_used,gas_price/1e9 as gasPrice,block_date,hashFROM polygon.transactionsWHERE hash in (SELECT hash FROM uniqueHash) -- only pull hashes that include the .SWOOSH ID contract address)SELECT totalGasSpent, gas_used, gasPrice, block_date, hash FROM gasSpentORDER BY totalGasSpent DESC -- list gas spent from largest to smallest