SELECT
date_trunc(HOUR, block_timestamp) AS time,
event_name,
count(DISTINCT event_inputs:to) AS users,
count(DISTINCT tx_hash) AS txs
FROM ethereum.core.fact_event_logs
WHERE origin_to_address= '0xcf39b7793512f03f2893c16459fd72e65d2ed00c'
GROUP BY time, event_name