Query editor
-- USDT inflow and outflow of a walletSELECTcase when v."from" = 0x28c6c06298d514db089934071355e5743bf21d60 then 'Outflow' Else 'Inflow' end as token_flow, sum(amount) as total_flowFROM (SELECTt."from", t.to, t.value/pow(10,6) amountFROM erc20_ethereum.evt_transfer tWHERE contract_address = 0xdAC17F958D2ee523a2206206994597C13D831ec7 -- USDT contract address) vGROUP BY 1