Question: How many rivers are the origin of the name Bas-Rhin or whose discharge is not 200 cubic metres per second?
Choices: 5
6
7
8
9
10
11
12
13
14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e_1 <named_after> ?e . ?e_1 <pred:name> "Bas-Rhin" .  } UNION { ?e <discharge> ?pv . ?pv <pred:unit> "cubic metre per second" . ?pv <pred:value> ?v . FILTER ( ?v != "200"^^xsd:double ) .  } }
Program:
function: Find
inputs: Bas-Rhin
function: Relate
dependencies: 0
inputs: named after
forward
function: FilterConcept
dependencies: 1
inputs: river
function: FindAll
function: FilterNum
dependencies: 3
inputs: discharge
200 cubic metre per second
!=
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 9