Query editor
/* Success! If you're still running into issues, check out https://dune.com/docs/query/syntax-differences/ or reach out in the #dune-sql Discord channel. *//* 0x1d0360bac7299c86ec8e99d0c1c9a95fefaf2a11 - great portal *//* 0xcfd39603a5059f966ca490beb3002a7a57a63233 - PC studios *//* 0xb208f8bb431f580cc4b216826affb128cd1431ab - dao *//* 0xffffffffffffffffffffffffffffffffffffffff - burn */WITHportal AS (SELECTday,SUM(ROUND(great_portal, 2)) OVER (ORDER BYday) AS cumSpentFROM(SELECTDATE_TRUNC('day', evt_block_time) AS day,SUM(CAST(value AS DOUBLE) / 1e18) AS great_portalFROMerc20_polygon.evt_TransferWHERE"contract_address" = 0x44a6e0be76e1d9620a7f76588e4509fe4fa8e8c8AND "to" = 0x1d0360bac7299c86ec8e99d0c1c9a95fefaf2a11AND "from" <> 0x0000000000000000000000000000000000000000GROUP BY1ORDER BY1) AS aliasORDER BYday),pixelcraft AS (SELECTday,SUM(ROUND(pixel_craft, 2)) OVER (ORDER BYday) AS cumSpentFROM(SELECTDATE_TRUNC('day', evt_block_time) AS day,SUM(CAST(value AS DOUBLE) / 1e18) AS pixel_craftFROMerc20_polygon.evt_TransferWHERE"contract_address" = 0x44a6e0be76e1d9620a7f76588e4509fe4fa8e8c8AND "to" = 0xcfd39603a5059f966ca490beb3002a7a57a63233AND "from" <> 0x0000000000000000000000000000000000000000GROUP BY1ORDER BY1) AS aliasORDER BYday),dao AS (SELECT