Question: How many rivers are tributaries of the Pacific Ocean or are watershed areas greater than 660000 square kilometres?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 0
inputs: tributary
forward
function: FilterConcept
dependencies: 1
inputs: river
function: FindAll
function: FilterNum
dependencies: 3
inputs: watershed area
660000 square kilometre
>
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e_1 <tributary> ?e . ?e_1 <pred:name> "Pacific Ocean" .  } UNION { ?e <watershed_area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v > "660000"^^xsd:double ) .  } }
Answer: 5