Query editor
SELECTsource_chain || ' ---> ' || destination_chain as "Bridge Route",'LayerZero' AS "Platform",layerzero_version AS "Version",COUNT(*) AS "Bridge Actions",AVG(usd_dvn_fee + usd_executor_fee) AS "Average Message Cost",APPROX_PERCENTILE(usd_dvn_fee + usd_executor_fee, 0.5) AS "Median Message Cost" /* source_chain,count(*), count(distinct tx_hash_source), count(distinct tx_hash_destination) */FROM layerzero.messagesWHERE ts_source >= CURRENT_DATE - INTERVAL '21' DAYAND usd_executor_fee < 100and source_chain || ' ---> ' || destination_chain in ('Arbitrum ---> Ethereum', 'Arbitrum ---> Base', 'Arbitrum ---> Solana', 'Arbitrum ---> BNB Smart Chain', 'Arbitrum ---> Polygon', 'Arbitrum ---> Optimism', 'Arbitrum ---> Linea', -- Arbitrum to Other Chains'Ethereum ---> Arbitrum', 'Ethereum ---> Base', 'Ethereum ---> Solana', 'Ethereum ---> BNB Smart Chain', 'Ethereum ---> Polygon', 'Ethereum ---> Optimism', 'Ethereum ---> Linea', -- Ethereum to Other Chains'Base ---> Ethereum', 'Base ---> Arbitrum', 'Base ---> Solana', 'Base ---> BNB Smart Chain', 'Base ---> Polygon', 'Base ---> Optimism', 'Base ---> Linea', -- Base to Other Chains'Solana ---> Ethereum', 'Solana ---> Base', 'Solana ---> Arbitrum', 'Solana ---> BNB Smart Chain', 'Solana ---> Polygon', 'Solana ---> Optimism', 'Solana ---> Linea', -- Solana to Other Chains'BNB Smart Chain ---> Ethereum', 'BNB Smart Chain ---> Base', 'BNB Smart Chain ---> Solana', 'BNB Smart Chain ---> Arbitrum', 'BNB Smart Chain ---> Polygon', 'BNB Smart Chain ---> Optimism', 'BNB Smart Chain ---> Linea', -- BNB Smart Chain to Other Chains'Polygon ---> Ethereum', 'Polygon ---> Base', 'Polygon ---> Solana', 'Polygon ---> BNB Smart Chain', 'Polygon ---> Arbitrum', 'Polygon ---> Optimism', 'Polygon ---> Linea', -- Polygon to Other Chains'Optimism ---> Ethereum', 'Optimism ---> Base', 'Optimism ---> Solana', 'Optimism ---> BNB Smart Chain', 'Optimism ---> Polygon', 'Optimism ---> Arbitrum', 'Optimism ---> Linea', -- Optimism to Other Chains'Linea ---> Ethereum', 'Linea ---> Base', 'Linea ---> Solana', 'Linea ---> BNB Smart Chain', 'Linea ---> Polygon', 'Linea ---> Optimism', 'Linea ---> Arbitrum' -- Linea to Other Chains)GROUP BY 1, 2, 3order by 5 desc