What is {place of residence} of {Ewan McGregor}, that has {subdivided into} is {Alhambra} ?
"Where is {place of residence} of {Ewan McGregor}, whhich has {subdivided into} is {Alhambra} ?"
"Where is {place of residence} of {Ewan McGregor}, whhich has {subdivided into} is {Alhambra} ?"
SELECT ?v WHERE { ?v property:contains_administrative_territorial_entity resource:Alhambra . resource:Ewan_McGregor property:residence ?v }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165518> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551>. ?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/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q752681> . }
SELECT ?answer WHERE { wd:Q165518 wdt:P551 ?answer . ?answer wdt:P150 wd:Q752681}