Query editor
WITH eth_price AS (SELECTprice AS eth_price_usdFROMprices.usdWHEREsymbol = 'ETH'ORDER BYminute DESCLIMIT 1),buy_volume AS (SELECTSUM(paidAmount) / 1e18 AS total_buying_volume_ethFROMv2_ali_agents_launchpad_base.erc20bondingcurvefactoryv1_evt_tradeWHEREcontract_address = 0x400e0b7106ffc2dbc1e4c4ec096c288ae6663cc8AND isBuy = true)SELECTbuy_volume.total_buying_volume_eth,buy_volume.total_buying_volume_eth * eth_price.eth_price_usd AS total_buying_volume_usdFROMbuy_volume,eth_price;