What is {rector} of {Moscow State University}, that has {alumna of} is {Saint Petersburg State University} ?
"Who is {minister} of {Moscow State College}, which {alumna of} is {Holy person Petersburg State College} ?"
"Who is {rector} of {Moscow State University}, which {alumna of} is {Saint Petersburg State University} ?"
SELECT ?y WHERE { resource:Moscow_State_University property:rector ?y . ?y property:educated_at resource:Saint_Petersburg_State_University }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q13164> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1075>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q27621> . }
SELECT ?answer WHERE { wd:Q13164 wdt:P1075 ?answer . ?answer wdt:P69 wd:Q27621}