What is {pupil of} of {Gioachino Rossini}, that has {career} is {musicologist} ?
what {pupil of} {gioachino Rossini} has a {career} as a {musicologist}
what {pupil of} {gioachino Rossini} has a {career} as a {musicologist}
SELECT ?k WHERE { ?k property:occupation resource:musicologist . resource:Gioachino_Rossini property:student_of ?k }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9726> . ?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/P106> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q14915627> . }
SELECT ?answer WHERE { wd:Q9726 wdt:P1066 ?answer . ?answer wdt:P106 wd:Q14915627}
Stanislao Mattei