What is {music by} of {The Magic Flute}, that has {has mother} is {Anna Maria Mozart} ?
The Magic Flute is music composed by which artist, who has a mother named Anna Maria Mozart?
The Magic Flute is music composed by which artist, who has a mother named Anna Maria Mozart?
SELECT ?k WHERE { resource:The_Magic_Flute property:composer ?k . ?k property:mother resource:Anna_Maria_Mozart }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5064> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P86>. ?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/P25> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q167981> . }
SELECT ?answer WHERE { wd:Q5064 wdt:P86 ?answer . ?answer wdt:P25 wd:Q167981}
Wolfgang Amadeus Mozart