Welcome to QCan!
SELECT DISTINCT ?z WHERE { { ?x
?y ; ?p ?o . } UNION { ?x
?y } ?y
?z}
Nothing to output.
Rewrite
Minimisation
Canonical Labeling