Query editor
select taker, sum(amount_usd) as amount, count(*) as transactionsfrom dex_aggregator.tradeswhere block_time > date('2022-01-01')and amount_usd > 50000group by takerhaving count(*) > 25 and count(*) < 1000order by sum(amount_usd) desc