input(value: { range(1, 11) as x })
-> unnest(x)
-> select({ *, { str(x) + ' Any St' as address, 0.0 as damaged } as building })
-> sort(by: x,
        # a more realistic example would call a Python damage function here
        delta: (prev, curr) -> { curr.building.*,
                                 curr.x / 10.0 + if_null(prev.delta.damaged, 0.0) as damaged },
        delta-type: 'struct(address: text, damaged: floating)')