with metamask_users as (select distinct origin_from_address as address
from ethereum.core.fact_event_logs
where contract_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C'))
select count(distinct buyer_address) as metamask_nft_buyer_count
from ethereum.core.ez_nft_sales
where buyer_address in (select address from metamask_users)