Query editor
WITHeth_price AS (SELECTpriceFROMprices.usd_latestWHEREblockchain = 'ethereum'AND symbol = 'WETH'LIMIT1),dune_mint_sales AS (SELECTSUM(0.0004) AS total_revenue_eth,/* Total ETH spent */SUM((0.0004) * ep.price) AS total_revenue_usd,/* Total USD spent based on ETH price */SUM(dma.quantity) AS total_mintsFROMquery_5165807 AS dmaCROSS JOIN eth_price AS ep)SELECTdms.total_mints AS total_mints,dms.total_revenue_usd AS total_revenue_usd,/* Total USD revenue */dms.total_revenue_eth AS total_revenue_eth /* Total ETH revenue */FROMdune_mint_sales AS dms