with data1 as(SELECT DISTINCT origin_from_address as user from ethereum.core.ez_dex_swaps where origin_to_Address=lower('0x881D40237659C251811CEC9c364ef91dC08D300C')),
data2 as (
SELECT event_name,count(tx_hash) as transactions from ethereum.core.fact_event_logs where origin_from_Address in (SELECT user from data1)
GROUP by 1)
SELECT * from data2
LIMIT 1000