Query editor
SELECTtime,amt,version,SUM(amt) OVER (ORDER BY time) as sumFROM(SELECTevt_block_time as time,participant,'V1' as version,(cast(amount as double) / 10000) as amtFROM airswap_ethereum."Locker_evt_Lock"UNION ALLSELECTevt_block_time as time,participant,'V1' as version,(cast(amount as double) / -10000) as amtFROM airswap_ethereum."Locker_evt_Unlock"UNION ALLSELECTevt_block_time as time,"to" as participant,'V2' as version,(cast(tokens as double) / 10000) as amtFROM airswap_ethereum."sAST_evt_Transfer"UNION ALLSELECTevt_block_time as time,"from" as participant,'V2' as version,(cast(tokens as double) / -10000) as amtFROM airswap_ethereum."sAST_evt_Transfer"UNION ALLSELECTevt_block_time as time,"to" as participant,'V3' as version,(cast(tokens as double) / 10000) as amtFROM airswap_ethereum."Staking_v3_evt_Transfer"UNION ALLSELECTevt_block_time as time,"from" as participant,'V3' as version,(cast(tokens as double) / -10000) as amtFROM airswap_ethereum."Staking_v3_evt_Transfer"UNION ALLSELECTevt_block_time as time,"to" as participant,'V4' as version,(cast(tokens as double) / 10000) as amtFROM airswap_ethereum."Staking_v4_evt_Transfer"UNION ALLSELECTevt_block_time as time,"from" as participant,'V4' as version,