What is the {municipality of Norway} for {shares border with} of {Oslo}
Which district of Norway offers its border with Oslo?
Which municipality of Norway shares its border with Oslo?
SELECT DISTINCT ?n WHERE { ?n property:shares_border_with resource:Oslo . ?n rdf:type ontology:municipality_of_Norway }
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/Q585> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q755707> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q585 . ?sbj wdt:P31 wd:Q755707 } 