select
sum(amount) as inflow_amount,
date_trunc(week,BLOCK_TIMESTAMP)::date as inflow_date,
sum(inflow_amount) over ( order by inflow_date ) as cum_inflow_amount
from solana.core.fact_transfers t,solana.core.dim_labels l
where t.TX_FROM = l.address
and mint='Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'
group by 2