Query editor
selectswapProtocol, chain, avg(amount_usd) as avg, approx_percentile(amount_usd, 0.5) as median, count(*) as tx_count, sum(amount_usd) as total_usdfrom query_9221478group by 1, 2order by 1, 6 desc
Query editor
1select2swapProtocol3, chain4, avg(amount_usd) as avg5, approx_percentile(amount_usd, 0.5) as median6, count(*) as tx_count7, sum(amount_usd) as total_usd8from query_9221478910group by 1, 21112order by 1, 6 desc