# bindings with two variables and two sets of values PREFIX : PREFIX foaf: SELECT ?s ?o1 ?o2 { ?s ?p1 ?o1 OPTIONAL { SERVICE {?s foaf:knows ?o2 }} } BINDINGS ?o2 { (:b) }