SELECT
date_trunc('day', block_timestamp) as date,
count(distinct tx_hash) as borrwoing_transactions,
count(distinct origin_from_address) as borrowing_users,
SUM(amount_USD) as amount_usd,
symbol
FROM ethereum.sushi.ez_borrowing
WHERE Action = 'Borrow'
AND SYMBOL = 'USDT'
OR SYMBOL = 'DAI'
OR SYMBOL = 'USDC'
group by date, symbol