Query editor
WITHc AS (SELECT"evt_block_time" AS "time",1 AS "pending",0 AS "chickenedOut",0 AS "chickenedIn"FROMliquity_ethereum.ChickenBondManager_evt_BondCreatedUNION ALLSELECT"evt_block_time" AS "time",-1 AS "pending",1 AS "chickenedOut",0 AS "chickenedIn"FROMliquity_ethereum.ChickenBondManager_evt_BondCancelledUNION ALLSELECT"evt_block_time" AS "time",-1 AS "pending",0 AS "chickenedOut",1 AS "chickenedIn"FROMliquity_ethereum.ChickenBondManager_evt_BondClaimed),s AS (SELECT"time",SUM("pending") OVER (ORDER BY"time") AS "pending",SUM("chickenedOut") OVER (ORDER BY"time") AS "chickenedOut",SUM("chickenedIn") OVER (ORDER BY"time") AS "chickenedIn"FROMc)SELECT"time","pending","chickenedOut","chickenedIn","pending" + "chickenedOut" + "chickenedIn" AS "total"FROMsORDER BY"time"/* v1 codewithc as (select"evt_block_time" as "time",