Query editor
withdeposit_users_detail as (select"from" as address,count(*) as deposit_times,sum(value_decimal) as deposit_ethfromtransfers_ethereum.ethwhere"to" = 0xF5C9F957705bea56a7e806943f98F7777B995826group by1),withdraw_users_detail as (select"to" as address,count(*) as withdraw_times,sum(value_decimal) as withdraw_ethfromtransfers_ethereum.ethwhere"from" = 0xDBd324B73f6f85bf9013B75C442021303b635Ff9group by1)selectaddress,deposit_eth,deposit_times,withdraw_eth,withdraw_times,deposit_eth - withdraw_eth as net_deposit,max(ens.reverse_latest.name) as ens,array_join(array_agg(labels.addresses.name), ', ') as tagsfromdeposit_users_detailleft join withdraw_users_detail using (address)left join ens.reverse_latest using (address)left join labels.addresses using (address)group by1,2,3,4,5order bydeposit_eth desc