Query editor
selectsum(tvl) tvl,sum(balance) balance,original_symbol_categoty,timefrom(select-tvl tvl, -underlying_balance underlying_balance, -underlying_balance_usdt underlying_balance_usdt, -underlying_daily_change underlying_daily_change, -underlying_daily_change_usdt underlying_daily_change_usdt,time,address,token_address,aave_token_address,q.symbol,token_type,- balance balance,exchange_rate,price,pt_price, - daily_changes daily_changes,t.symbol as original_symbol,casewhen t.symbol like '%USDE%' or t.symbol like '%USDe%' then 'USDE & PT'when t.symbol like '%ETH%' then 'ETH & LSD'else t.symbol end as original_symbol_categotyfrom query_5722249 qLEFT JOIN tokens.erc20 AS t ON t.contract_address = q.token_addressAND t.blockchain = 'ethereum'where token_type = 'atoken' and address = 0x0000000000000000000000000000000000000000order by time desc , tvl desc) group by original_symbol_categoty,timeorder by time desc,tvl desc