What is the {municipality of Belgium} for {shares border with} of {Bruges}
What city in Belgium is adjacent to Bruges?
Which city in Belgium shares a border with Bruges?
SELECT DISTINCT ?d WHERE { ?d property:shares_border_with resource:Bruges . ?d rdf:type ontology:municipality_of_Belgium }
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/Q12994> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q493522> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q12994 . ?sbj wdt:P31 wd:Q493522 } 
Damme Blankenberge Oostkamp Knokke-Heist