What is the {rural district of Germany} for {shares border with} of {Munich}
Title the country locale of Germany that offers its border with Munich.
Name the rural district of Germany that shares its border with Munich.
SELECT DISTINCT ?y WHERE { ?y property:shares_border_with resource:Munich . ?y rdf:type ontology:District }
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/Q1726> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q106658> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q1726 . ?sbj wdt:P31 wd:Q106658 } 