select
address_name,
count (distinct tx_hash) as Swap_Count
from Polygon.core.fact_event_logs x join Polygon.core.dim_labels y on x.contract_address = y.address
where origin_to_address = '0xdef171fe48cf0115b1d80b88dc8eab59176fee57' and origin_from_address = event_inputs:from
and event_name ilike 'transfer'
and block_timestamp >= CURRENT_DATE - 90
group by 1
order by 2 desc
limit 10