select
block_timestamp::date as date ,count(DISTINCT sender ) as users ,sum(amount_usd) as borrow_amount , count(DISTINCT tx_id) as number_of_borrows
from anchor.borrows
where block_timestamp >= CURRENT_DATE - 90
group by 1 having borrow_amount is not NULL order by 1