select
sum(amount) as outflow_amount,
date_trunc(week,BLOCK_TIMESTAMP)::date as outflow_date,
sum(outflow_amount) over ( order by outflow_date ) as cum_outflow_amount
from solana.core.fact_transfers t,solana.core.dim_labels l
where t.TX_TO = l.address
and mint='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
group by 2