with A as (select tx_from[0] as wallet ,min(block_timestamp)::date as min_date from terra.transactions group by 1 having min_date>=CURRENT_DATE-90)
select DISTINCT tx_from, count (tx_id)
from terra.transactions join A aa on tx_from = aa.wallet
group by tx_from