Question: How many seas have a tributary of the Amazon (the one whose discharge is 209000 cubic meters per second) or whose vertical depth is greater than 440 meters?
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> "sea" .  { ?e <tributary> ?e_1 . ?e_1 <pred:name> "Amazon" . ?e_1 <discharge> ?pv . ?pv <pred:unit> "cubic metre per second" . ?pv <pred:value> "209000"^^xsd:double .  } UNION { ?e <vertical_depth> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v > "440"^^xsd:double ) .  } }
Program:
function: Find
inputs: Amazon
function: FilterNum
dependencies: 0
inputs: discharge
209000 cubic metre per second
=
function: Relate
dependencies: 1
inputs: tributary
backward
function: FilterConcept
dependencies: 2
inputs: sea
function: FindAll
function: FilterNum
dependencies: 4
inputs: vertical depth
440 metre
>
function: FilterConcept
dependencies: 5
inputs: sea
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 5