Query editor
WITH transfers AS (SELECTblockchain,LOWER(from_address) AS from_address,LOWER(to_address) AS to_address,amount_usdFROM tokens_multichain.transfersWHERE block_date >= DATE '2026-03-01'AND block_date < DATE '2026-04-01'AND block_time >= TIMESTAMP '2026-03-01 00:00:00'AND block_time < TIMESTAMP '2026-04-01 00:00:00'AND token_symbol = 'USDC'AND amount_usd > 1),labels_dedup AS (SELECTblockchain,LOWER('0x' || to_hex(address)) AS address,MAX(category) AS categoryFROM labels.addressesGROUP BY 1, 2),labeled AS (SELECTtr.amount_usd,COALESCE(l_to.category, l_from.category) AS categoryFROM transfers trLEFT JOIN labels_dedup l_toON l_to.blockchain = tr.blockchainAND l_to.address = tr.to_addressLEFT JOIN labels_dedup l_fromON l_from.blockchain = tr.blockchainAND l_from.address = tr.from_address)SELECTCOALESCE(category, 'unlabeled') AS category,COUNT(*) AS tx_count,SUM(amount_usd) AS total_volume,ROUND(SUM(amount_usd) / SUM(SUM(amount_usd)) OVER () * 100, 2) AS pct_of_totalFROM labeledGROUP BY 1ORDER BY 3 DESC;