Query editor
with auctions as (select evt_block_time as "Date","nounId", evt_tx_hash, price,amount/1e18 as "Paid", winner,--(CASE WHEN "tokenId" % 10 = 0 THEN 0 ELSE--max(value/1e18) END) as "Paid",--CONCAT('<a href="https://nouns.wtf/noun/', "tokenId", '" target="_blank">0', "tokenId" '</a>') ,CONCAT('<a href="https://opensea.io/assets/0x9c8ff314c9bc7f6e59a9d9225fb22946427edc03/', "nounId", '" target="_blank">', CONCAT('https://opensea.io/assets/0x9c8ff314c9bc7f6e59a9d9225fb22946427edc03/', "nounId"), '</a>') as "URL"from nouns_auctionhouse."NounsAuctionHouse_evt_AuctionSettled" nJOIN prices.usd on date_trunc('minute', evt_block_time) = date_trunc('minute', minute)WHERE symbol = 'WETH'--join ethereum."traces" t on n.evt_tx_hash = t.tx_hash--group by evt_tx_hash, "tokenId", evt_block_timeORDER BY "nounId" ASC)select "Date", "nounId", CONCAT('<a href="https://etherscan.io/address/', CONCAT('0x', ENCODE("winner", 'hex')), '" target="_blank">', CONCAT('0x', ENCODE("winner", 'hex')), '</a>') as "Winner", "Paid", price as "ETH price ($)", ROUND((avg("Paid") OVER (ORDER BY "nounId" ROWS BETWEEN 6 PRECEDING AND 0 FOLLOWING)), 1) as "MA last 7 auctions",ROUND((avg("Paid") OVER (ORDER BY "nounId" ROWS BETWEEN 29 PRECEDING AND 0 FOLLOWING)), 1) as "MA last 30 auctions","URL",sum("Paid") OVER (ORDER BY "nounId" ASC) AS "Cumulative"from auctions