What is {birth location} of {Anne Perry}, that has {office of head of government} is {Mayor of London} ?
"Which is {birth location} of {Anne Perry}, which has {office of head of government} is {Mayor of London} ?"
"Which is {birth location} of {Anne Perry}, which has {office of head of government} is {Mayor of London} ?"
SELECT ?e WHERE { ?e property:office_held_by_head_of_government resource:Mayor_of_London . resource:Anne_Perry property:place_of_birth ?e }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q288627> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19>. ?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/P1313> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q38931> . }
SELECT ?answer WHERE { wd:Q288627 wdt:P19 ?answer . ?answer wdt:P1313 wd:Q38931}
London