What is {bordered by} of {Kingdom of Castile}, that has {language official} is {Spanish} ?
What location is bordered through the kingdom of Castile, whose legitimate language is Spanish?
What place is bordered by the kingdom of Castile, whose official language is Spanish?
SELECT ?y WHERE { ?y property:official_language resource:Spanish . resource:Kingdom_of_Castile property:shares_border_with ?y }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q179293> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?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/P37> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1321> . }
SELECT ?answer WHERE { wd:Q179293 wdt:P47 ?answer . ?answer wdt:P37 wd:Q1321}
Kingdom of León