What is the {Belgian municipality with city privileges} for {shares border with} of {Bruges}
What Belgian region with city benefits offers a border with Bruges?
What Belgian municipality with city privileges shares a border with Bruges?
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Belgian_municipality_with_city_privileges . ?m property:shares_border_with resource:Bruges }
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/Q15273785> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q12994 . ?sbj wdt:P31 wd:Q15273785 } 
Damme Blankenberge