prefix ex: prefix in: select ?x ?y ?z ((?y = ?z) as ?eq) where { ?x ex:p ?y . ?x ex:q ?z }