What is the {college town} for {shares border with} of {Munich}
What college down offers a border with Munich?
What college down shares a border with Munich?
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:college_town . ?h property:shares_border_with resource:Munich }
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/Q1187811> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q1726 . ?sbj wdt:P31 wd:Q1187811 } 
Garching bei München