PREFIX : SELECT ?z ?s1 { ?s ?p ?o . BIND(?o+1 AS ?z) ?s1 ?p1 ?z }