Query editor
WITH combined_tx_logs AS (SELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_baseUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_solanaUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_ethereumUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_arbitrumUNION ALLSELECT chain, volume_usd FROM dune.xentfi.dataset_xentfi_flows_polygon)SELECTchain AS blockchain,COUNT(*) AS total_transactions,SUM(volume_usd) AS total_volume_usd,ROUND(SUM(volume_usd) / 1000000.0, 2) AS volume_in_millions,ROUND(SUM(volume_usd) * 100.0 / SUM(SUM(volume_usd)) OVER (), 2) AS market_share_pctFROM combined_tx_logsGROUP BY chainORDER BY total_volume_usd DESC;