Query editor
with trades as (selecttoken_sold_address as token_address,token_sold_symbol as token_symbol,block_time,tx_hash,amount_usd,tx_from as trader,blockchainfromdex.tradeswhere project = 'uniswap'union allselecttoken_bought_address as token_address,token_bought_symbol as token_symbol,block_time,tx_hash,amount_usd,tx_from as trader,blockchainfromdex.tradeswhere project = 'uniswap')selectblockchain,count(distinct token_address) as tokens,count(distinct tx_hash) as swaps,count(distinct trader) as traders,sum(amount_usd) / count(distinct token_address) as avg_volume_per_token,count(distinct trader) / count(distinct token_address) as traders_per_token,count(distinct tx_hash) / count(distinct token_address) as swaps_per_tokenfromtradesgroup by 1