What is {tutor} of {Luke Skywalker}, that has {pupil} is {Ki-Adi-Mundi} ?
"Who is {tutor} of {Luke Skywalker}, which has {pupil} is {Ki-Adi-Mundi} ?"
"Who is {tutor} of {Luke Skywalker}, which has {pupil} is {Ki-Adi-Mundi} ?"
SELECT ?g WHERE { resource:Luke_Skywalker property:student_of ?g . ?g property:student resource:Ki-Adi-Mundi }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q51746> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1066>. ?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/P802> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q54271> . }
SELECT ?answer WHERE { wd:Q51746 wdt:P1066 ?answer . ?answer wdt:P802 wd:Q54271}
Yoda