How many {located in or next to body of water} are to/by {Arkansas River} ?
How many bodies of water are located near the Arkansas River?
How many bodies of water are located by the Arkansas River?
SELECT ( COUNT ( ?z ) AS ?b ) { ?z property:located_in_or_next_to_body_of_water resource:Arkansas_River }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?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> http://wikidata.dbpedia.org/resource/Q8319 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P206 wd:Q8319 }
19