What is the {like a city} for {shares border with} of {Munich}
What entity which is like a city shares a border with Munich?
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Munich . ?t rdf:type ontology:like_a_city }
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/Q15253706> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q1726 . ?sbj wdt:P31 wd:Q15253706 } 
Garching bei München