Question: What is the number of rivers whose length is under 1500 miles or watershed area is over 53000 square kilometers?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e <length> ?pv . ?pv <pred:unit> "mile" . ?pv <pred:value> ?v . FILTER ( ?v < "1500"^^xsd:double ) .  } UNION { ?e <watershed_area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v > "53000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: length
1500 mile
<
function: FilterConcept
dependencies: 1
inputs: river
function: FindAll
function: FilterNum
dependencies: 3
inputs: watershed area
53000 square kilometre
>
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 7