select block_timestamp::date date,sum(WITHDRAWN_TOKENS) aave_amount,sum(WITHDRAWN_USD) usd_amount,
count(distinct DEPOSITOR_ADDRESS) withdrawers,avg(TOKEN_PRICE) aave_price
from flipside_prod_db.aave.withdraws
where 1=1
and SYMBOL='AAVE'
and AAVE_VERSION in ('Aave V2','Aave V1')
and date>='2022-02-01'
group by 1