Query editor
WITH-- 1. Mintpod Contractsmintpod_contracts AS (SELECTname,contract_addressFROM query_4137599GROUP BYname,contract_address),-- 2. Base Price per Mint in ETH for Mintpod Dropsbase_price_mintpod AS (SELECTMIN(trades.amount_original) AS base_price_eth,mp.name,trades.nft_contract_addressFROM nft.mints AS tradesJOIN mintpod_contracts AS mpON trades.nft_contract_address = mp.contract_addressWHEREtrades.amount_original IS NOT NULLAND trades.amount_original > 0AND trades.trade_type = 'Single Item Mint'AND trades.currency_symbol = 'ETH'AND trades.blockchain = 'base'GROUP BYmp.name,trades.nft_contract_address),-- 3. Mintpod Sales using ETH price at mint timemintpod_sales AS (SELECTDATE_TRUNC('day', trades.block_time) AS date,SUM(trades.number_of_items) AS total_mints,SUM(mbp.base_price_eth * trades.number_of_items) AS total_revenue_eth,SUM((mbp.base_price_eth * trades.number_of_items) * p.price) AS total_revenue_usdFROM nft.mints AS tradesJOIN mintpod_contracts AS mpON trades.nft_contract_address = mp.contract_addressJOIN base_price_mintpod AS mbpON trades.nft_contract_address = mbp.nft_contract_addressJOIN prices.usd AS pON p.blockchain = 'ethereum'AND p.symbol = 'WETH'AND p.minute = DATE_TRUNC('minute', trades.block_time)WHEREtrades.blockchain = 'base'AND trades.amount_original IS NOT NULLAND trades.amount_original > 0GROUP BYDATE_TRUNC('day', trades.block_time)),-- 4. Mint Revenuemint_revenue AS (