Query editor
withtransfer_detail as (selectevt_block_time,evt_tx_hash,contract_address,"to" as address,cast(value as decimal (38, 0)) as amountfromerc20_ethereum.evt_transferwherecontract_address = (selectcontractfrom-- Blocklords LRDS Contractsquery_4070456wherename = 'ETH_LRDS')union allselectevt_block_time,evt_tx_hash,contract_address,"from" as address,-1 * cast(value as decimal (38, 0)) as amountfromerc20_ethereum.evt_transferwherecontract_address = (selectcontractfrom-- Blocklords LRDS Contractsquery_4070456wherename = 'ETH_LRDS'))selectsum(amount) / 1e18 as balance_amountfromtransfer_detailwhereaddress in (selectcontractfromquery_4070482)