Query editor
withcreated_pos_signers as (selectcall_block_date,sum(amount) as created_posfrompyth_solana.staking_call_createPositionwherecall_block_date >= date '2023-11-16' -- date when the first 600m is stakedgroup bycall_block_date),closed_pos_signers as (selectcall_block_date,sum(amount) as closed_posfrompyth_solana.staking_call_closePositionwherecall_block_date >= date '2023-11-16'group bycall_block_date)SELECTcps.call_block_date AS day,(CAST(coalesce(cps.created_pos, 0) AS BIGINT) - CAST(coalesce(closed.closed_pos, 0) AS BIGINT)) / 1000000 AS amount,SUM((CAST(coalesce(cps.created_pos, 0) AS BIGINT) - CAST(coalesce(closed.closed_pos, 0) AS BIGINT)) / 1000000) OVER (ORDER BY cps.call_block_date) AS cumulative_amountFROMcreated_pos_signers cpsLEFT JOIN closed_pos_signers closed ON cps.call_block_date = closed.call_block_dateGROUP BY1, 2ORDER BY1 DESC