with unitxn as (select tx_hash
from
ethereum.core.fact_transactions
where to_address = '0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b'),
b as (select date(block_timestamp) as dt, BUYER_ADDRESS, ens.tx_hash, unitxn.tx_hash as fromuni , price_usd
from ethereum.core.ez_nft_sales ens inner join unitxn
on unitxn.tx_hash = ens.tx_hash)
select buyer_address
from (select buyer_address, min(dt) as fd
from b
where PRICE_USD>0 and dt<'2022-12-14'
group by 1 order by 2 asc)
limit 22000