Query editor
WITH DailyVoteDifferences AS (SELECTevt_block_date,SUM(newVotes/ POW(10,18) - previousVotes/ POW(10,18)) AS daily_differenceFROM scroll_scroll.L2GovToken_evt_DelegateVotesChangedGROUP BY evt_block_date),AccumulatedVoteDifferences AS (SELECTevt_block_date,SUM(daily_difference) OVER (ORDER BY evt_block_date) AS scr_delegateFROM DailyVoteDifferences)SELECTevt_block_date,scr_delegateFROM AccumulatedVoteDifferencesORDER BY evt_block_date;