Query editor
WITH eth_balances AS (SELECT"to",SUM(value_decimal) AS eth_receivedFROM transfers_ethereum.ethWHERE"to" IN ({{Wallet}})GROUP BY"to"UNION ALLSELECT"from" AS "to",-SUM(value_decimal) AS eth_sentFROM transfers_ethereum.ethWHERE"from" IN ({{Wallet}})GROUP BY"from"), aggregated_balances AS (SELECT"to",SUM(eth_received) AS final_balanceFROM eth_balancesGROUP BY"to"), latest_eth_price AS (SELECTpriceFROM prices.usdWHEREsymbol = 'ETH'ORDER BYminute DESCLIMIT 1)SELECTab.final_balance * lep.price AS usd_valueFROM aggregated_balances AS abCROSS JOIN latest_eth_price AS lep