Question: How many rivers are not 680 meters above sea level or are not 3800 kilometers long?
Choices: 7
8
9
10
11
12
13
14
15
16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v != "680"^^xsd:double ) .  } UNION { ?e <length> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> ?v . FILTER ( ?v != "3800"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: elevation above sea level
680 metre
!=
function: FilterConcept
dependencies: 1
inputs: river
function: FindAll
function: FilterNum
dependencies: 3
inputs: length
3800 kilometre
!=
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 8