What is {in work} of {wives} of {Basil Fawlty} ?
Who played the spouse of Basil Fawlty?
Who played the wife of Basil Fawlty?
SELECT ?t WHERE { ?m property:present_in_work ?t . resource:Basil_Fawlty property:spouse ?m }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1766187> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1441> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q1766187 wdt:P26 ?X . ?X wdt:P1441 ?answer}
Fawlty Towers