select
date_trunc('month',block_timestamp) as month,
sum(amount_usd) as amount_spent,
count(distinct(from_address)) as unique_users,
count(event_id) as n_registrations
from
gold.ethereum_events
where contract_address = '0x9992ec3cf6a55b00978cddf2b27bc6882d88d1ec'
and to_address = '0x240f9f86b1465bf1b8eb29bc88cbf65573dfdd97'
and block_timestamp >= '2020-01-01'
group by 1
order by 1;