Query editor
WITH outbound_transfers AS (SELECTrecipientChain AS destination_chain_id,COUNT(*) AS outbound_txnsFROMwormhole_token_bridge_bsc_bnb.TokenBridge_call_transferTokensGROUP BYrecipientChain),outbound_transfers_payload AS (SELECTrecipientChain AS destination_chain_id,COUNT(*) AS outbound_txnsFROMwormhole_token_bridge_bsc_bnb.TokenBridge_call_transferTokensWithPayloadGROUP BYrecipientChain),wrap_eth_outbound AS (SELECTrecipientChain AS destination_chain_id,COUNT(*) AS outbound_txnsFROMwormhole_token_bridge_bsc_bnb.TokenBridge_call_wrapAndTransferETHGROUP BYrecipientChain),wrap_eth_outbound_payload AS (SELECTrecipientChain AS destination_chain_id,COUNT(*) AS outbound_txnsFROMwormhole_token_bridge_bsc_bnb.TokenBridge_call_wrapAndTransferETHWithPayloadGROUP BYrecipientChain)SELECTCASEWHEN destination_chain_id = 2 THEN 'Ethereum'WHEN destination_chain_id = 6 THEN 'Avalanche'WHEN destination_chain_id = 10 THEN 'Fantom'WHEN destination_chain_id = 1 THEN 'Solana'END AS destination_chain,SUM(outbound_txns) AS total_outbound_txnsFROM (SELECT * FROM outbound_transfersUNION ALLSELECT * FROM outbound_transfers_payloadUNION ALLSELECT * FROM wrap_eth_outboundUNION ALLSELECT * FROM wrap_eth_outbound_payload)WHERE destination_chain_id IN (1, 2, 6, 10)GROUP BY destination_chain_idORDER BY total_outbound_txns DESC;