Query editor
SELECTwallet,GREATEST(SUM(amount), 0) as balanceFROM(SELECT"to" as wallet,SUM(value) as amountFROMethereum.transactionsGROUP BY"to"UNION ALLSELECT"from" as wallet,-SUM(value) as amountFROMethereum.transactionsGROUP BY"from") as eth_transfersGROUP BYwallet;