What is {consort} of {David Lean}, that has {personal name} is {Ann} ?
Who went by way of the title of Ann and was once the consort of David Lean?
Who went by the name of Ann and was the consort of David Lean?
SELECT ?y WHERE { ?y property:given_name resource:Ann . resource:David_Lean property:spouse ?y }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q55260> . ?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> ?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/P735> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q558067> . }
SELECT ?answer WHERE { wd:Q55260 wdt:P26 ?answer . ?answer wdt:P735 wd:Q558067}
Ann Todd