select pool_name, pool_address, avg(token0_balance_usd + token1_balance_usd) as TVL
from uniswapv3.pool_stats
where token0_balance_usd is not null and token1_balance_usd is not null
and pool_name is not null
group by 1, 2
order by TVL desc
limit 1000