Question: How many rivers share a border with Charlotte (whose population is 82675) and have a basin in the country of the United States of America?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Charlotte
function: FilterNum
dependencies: 0
inputs: population
82675
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: river
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: basin country
backward
function: FilterConcept
dependencies: 5
inputs: river
function: And
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Charlotte" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "82675"^^xsd:double .  ?e <basin_country> ?e_2 . ?e_2 <pred:name> "United States of America" .  }
Answer: 0