Query editor
with a as (SELECTdate_trunc('day', block_time) as day,blockchain,tx_from as trader,COUNT(*) as num_trades,sum(amount_usd) as volumeFROM dex."trades"WHERE block_time > now() - Interval '30' DayGROUP BY 1, 2, 3)SELECTblockchain,CASEWHEN a.num_trades >=100 THEN 'high_freq'ELSE 'other' END AS size,sum(a.volume) as volumeFROM aGROUP BY 1, 2