Query editor
with ten_pool as (select * from query_4237393union allselect * from query_4237693union allselect * from query_4237694union allselect * from query_4237695union allselect * from query_4237696union allselect * from query_4237730-- # Pool 7union allselect * from query_4237732union allselect * from query_4237733union allselect * from query_4237735union allselect * from query_4237744),top_10_pool as (selectpool_contract_address,symbol,balance,row_number () over (partition by pool_contract_address order by time desc) rkfrom ten_pool)selectt1.pool_contract_address,t1.symbol,t1.balance,t2.price,t1.balance*t2.price balance_usdfrom top_10_pool t1left join prices.usd_daily t2 on t1.symbol = t2.symbol and t2.blockchain = 'ethereum' and t2.day = current_date - interval '1' daywhere rk <= 2order by pool_contract_address, symbol