case when action = 'delegate' then sum(event_amount) over (partition by delegator_address, action order by block_timestamp rows between unbounded preceding and current row) end as cumu_delegate,
case when action = 'redelegate' then sum(event_amount) over (partition by delegator_address, action order by block_timestamp rows between unbounded preceding and current row) end as cumu_redelegate,
case when action = 'undelegate' then sum(event_amount) over (partition by delegator_address, action order by block_timestamp rows between unbounded preceding and current row) end as cumu_undelegate