What is the {river} for {located in or next to body of water} of {Aachen}
who waterway for found in or following to body of water of Aachen?
who river for located in or next to body of water of Aachen?
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:river . resource:Aachen property:located_in_or_next_to_body_of_water ?r }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1017> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P206> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q4022> } 
 select distinct ?obj where { wd:Q1017 wdt:P206 ?obj . ?obj wdt:P31 wd:Q4022 } 
Wurm