select
date_trunc('day',block_timestamp) as dates,
count(distinct(to_address)) as Number_of_users_receiving_the_tx,
count(distinct(from_address)) as Number_of_users_starting_the_tx
from polygon.core.fact_transactions
where dates >= '2022-01-01' and dates <= '2022-07-08'
group by dates