select
date_trunc('month', block_timestamp) as time,
collateral_symbol,
count(*) as frequency,
sum(amount_usd) as volume
from flipside_prod_db.crosschain.ez_borrowing
where platform = 'sushi'
and blockchain = 'ethereum'
and collateral_symbol in ('USDC', 'USDT', 'TUSD', 'SUSD', 'DAI')
group by 1, 2