select sum(total_liquidity_usd) as total_liquidity,
reserve_name as token,
block_hour::date as date_time
from flipside_prod_db.aave.market_stats
where block_hour::date >= '{{start_date}}' and block_hour::date <= '{{end_date}}'
and aave_version = 'Aave V2'
and token like '{{token_name}}'
group by date_time, token