Query editor
WITH user_stats AS (SELECTCAST(user AS VARCHAR) AS user_address,COUNT(*) AS tx_count,COUNT(DISTINCT bridge) AS bridge_count,COUNT(DISTINCT chain) AS source_chain_count,COUNT(DISTINCT dst_chain) AS dest_chain_count,SUM(amount_usd) AS total_amount,AVG(amount_usd) AS avg_tx_amount,MIN(block_time) AS first_activity,MAX(block_time) AS last_activityFROM dune.jumper_exchange.result_bridge_marketGROUP BY 1),top_users AS (SELECT *FROM user_statsORDER BY total_amount DESCLIMIT 100)SELECT *FROM top_usersORDER BY total_amount DESC;