What is the {doctoral student} and the {doctoral advisor} of {Isaac_Newton} ?
What subject did Isaac Newton study and who advised him?
What was Isaac Newton a student of and who was his doctoral advisor?
SELECT ?q ?v WHERE { resource:Isaac_Newton property:doctoral_student ?q . resource:Isaac_Newton property:doctoral_advisor ?v }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q935> . ?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/Q935> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P184> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q935 wdt:P185 ?ans_1 . wd:Q935 wdt:P184 ?ans_2 }