What is the {municipality of Spain} for {shares border with} of {Granada}
Which locale of Spain offers its border with Granada?
Which region of Spain shares its border with Granada?
SELECT DISTINCT ?o WHERE { resource:Granada property:shares_border_with ?o . ?o rdf:type ontology:municipality_of_Spain }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8810> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2074737> } 
 select distinct ?obj where { wd:Q8810 wdt:P47 ?obj . ?obj wdt:P31 wd:Q2074737 } 
Beas de Granada Atarfe Armilla Cájar Cenes de la Vega Churriana de la Vega Dúdar Huétor Vega Huétor Santillán Maracena Ogíjares Pinos Genil Pulianas Santa Fe Vegas del Genil Víznar La Zubia Jun