select
date_trunc('day', block_timestamp) as dates,
count (distinct ORIGIN_FROM_ADDRESS) as users,
event_inputs:tokenId as tokenId,
sum(event_inputs:value)/pow(10,18) as volume
from polygon.core.fact_event_logs
where origin_to_address = lower('0x059d306A25c4cE8D7437D25743a8B94520536BD5')
and ORIGIN_FUNCTION_SIGNATURE='0x72ada4c5'
and dates>='2022-05-28'
group by 1,3
order by 1