How many {located on terrain feature} are for {Dortmund} ?
What type of terrain is Dortmund located?
Dortmund is located on terrain feature of what type?
SELECT ( COUNT ( ?z ) AS ?w ) { resource:Dortmund property:located_on_terrain_feature ?z }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1295> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P706> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q1295 wdt:P706 ?obj }
14