SELECT
date_trunc('day',block_timestamp) as dates, count(DISTINCT tx_hash) as txs,
sum(event_inputs:amount)/pow(10,18) as volume,
sum(volume) over (order by dates asc) as total_volume
from ethereum_core.fact_event_logs
where event_name = 'TransferSentToL2'
and dates >= '2022-01-01'
and contract_address = '0x22b1cbb8d98a01a3b71d034bb899775a76eb1cc2'
GROUP by 1
order by 1