What is the {doctoral student} and the {student} of {Pope_Benedict_XVI} ?
Who is the {doctoral understudy} and the {understudy} of {Pope_Benedict_XVI} ?
Who is the {doctoral student} and the {student} of {Pope_Benedict_XVI} ?
SELECT ?x ?w WHERE { resource:Benedict_XVI property:doctoral_student ?x . resource:Benedict_XVI property:student ?w }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2494> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P185> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_1. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2494> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P802> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q2494 wdt:P185 ?ans_1 . wd:Q2494 wdt:P802 ?ans_2 }
Hub Schnackers Bruno Schmid