select count(*) as total, tx_type from (
select block_timestamp, block_id, 'Deposit' as tx_type, tx_id, depositor_address, blockchain, symbol, supplied_usd
from flipside_prod_db.aave.deposits
where depositor_address like lower('{{user_address}}'))
group by tx_type