select sum(event_inputs:amount)/pow(10,18) as "ETH Bridged To L2",
date_trunc('week', block_timestamp::date) as TIME
from ethereum.core.fact_event_logs where origin_to_address = lower('0xb8901acb165ed027e32754e0ffe830802919727f')
and event_name = 'TransferSentToL2'
and EVENT_INPUTS:chainId ='10'
group by TIME
order by TIME ASC