What is the {municipality of Spain} for {shares border with} of {Bilbao}
What town in Spain borders Bilbao?
What town in Spain borders Bilbao?
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:municipality_of_Spain . ?l property:shares_border_with resource:Bilbao }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?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> <http://wikidata.dbpedia.org/resource/Q8692> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2074737> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q8692 . ?sbj wdt:P31 wd:Q2074737 } 
Zamudio Arrigorriaga Barakaldo Derio Basauri Erandio Alonsotegi Sondika Galdakao Etxebarri