Query editor
WITH address_tron AS (SELECTaddressFROM dune.super_jmzc_team.dataset_exchange_tron_address_new2WHERE entity_name = 'kucoin'UNION ALLSELECT 'TUpHuDkiCCmwaTZBHZvQdwWzGNm5t8J2b9' AS address), tx as (SELECTt.block_date,t.block_time,t.tx_hash_varchar,t.from_varchar,t.to_varchar,t.amount,t.amount_usdFROM tokens_tron.transfers tWHERE t.block_time >= TIMESTAMP '2026-08-22 02:42:23' and t.block_time < TIMESTAMP '2026-08-22 06:42:23'AND t.symbol = 'USDT'AND t.amount >= 10000AND t.from_varchar in (select address from address_tron)-- AND t.amount = FLOOR(t.amount)), agg as (selectto_varchar,min(block_time) as ts_min,count(*) as count_transrers,sum(amount) as amount_tofrom txgroup by 1)select * from agg where amount_to <= 55000 order by ts_min asc