with tab1 as (
select
origin_from_address
from ethereum.core.fact_event_logs
where contract_address like lower('0x881D40237659C251811CEC9c364ef91dC08D300C')
)
select
event_name,
count(*)
from ethereum.core.fact_event_logs
where origin_from_address in (select * from tab1 )
and event_name is not null
group by 1
Order by 2 DESC
limit 50