PREFIX : # ?x and ?X are different SPARQL variables SELECT ?x ?X { ?x :p1 ?X }