What is the {special municipality association of Germany} for {headquarters location} of {Aachen}
Which German special municipality association is headquartered in Aachen?
What is the special municipality association of Germany with headquarters location at Aachen?
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:special_municipality_association_of_Germany . ?w property:headquarters_location resource:Aachen }
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/P159> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1017> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1780389> } 
 select distinct ?sbj where { ?sbj wdt:P159 wd:Q1017 . ?sbj wdt:P31 wd:Q1780389 } 
Aachen