with t as (
select
distinct from_address as user
from avalanche.core.fact_transactions
where to_address = lower('0xA481B139a1A654cA19d2074F174f17D7534e8CeC')
)
select
count(distinct tx_hash) as transactions
from avalanche.core.fact_transactions
where from_address in (select distinct user from t)