What is {location of birth} of {Muhammad al-Idrisi}, that has {is in the settlement of} is {Spain} ?
Where in Spain was Muhammad al-Idrisi born?
Where in Spain was Muhammad al-Idrisi born?
SELECT ?r WHERE { resource:Muhammad_al-Idrisi property:place_of_birth ?r . ?r property:located_in_the_administrative_territorial_entity resource:Spain }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q173441> . ?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/P131> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q29> . }
SELECT ?answer WHERE { wd:Q173441 wdt:P19 ?answer . ?answer wdt:P131 wd:Q29}