What is {book by} of {Siegfried}, that has {famous works} is {Tristan und Isolde} ?
What book by Siegfried has the popular work Tristan und Isolde?
What book by Siegfried has the famous work Tristan und Isolde?
SELECT ?p WHERE { resource:Siegfried property:librettist ?p . ?p property:notable_work resource:Tristan_und_Isolde }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q333146> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P87>. ?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/P800> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1324254> . }
SELECT ?answer WHERE { wd:Q333146 wdt:P87 ?answer . ?answer wdt:P800 wd:Q1324254}
Richard Wagner