select date_trunc('day',earliest_date), count(from_address)
from (
select distinct(from_address), min(block_timestamp) as earliest_date
from ethereum.udm_events
where contract_address = '0xcafe001067cdef266afb7eb5a286dcfd277f3de5'
group by 1
order by 2 desc
)
where earliest_date >= CURRENT_DATE - 60
group by 1
order by 1 desc
--group by 1,2