SELECT
trunc(block_timestamp,'day') as date,
sum(tx_fee) as daily_fees,
sum(daily_fees) over (order by date) as cum_daily_fees
from ethereum.core.fact_transactions
where block_timestamp>='2022-01-01'
and tx_hash in (select tx_hash from ethereum.core.ez_dex_swaps where block_timestamp>='2022-01-01' and platform='sushiswap')
group by 1
order by 1 asc