with loans as (
select block_timestamp::date as date,
count(tx_id) as total_loans
from flipside_prod_db.aave.borrows
where borrower_address = lower('{{Address}}')
and date >= '2021-01-01'
group by date
order by date
)
select * from loans
-- select borrower_address, count(tx_id) as count from flipside_prod_db.aave.borrows
-- group by borrower_address order by count desc limit 10