Question: How many of the rivers either have a basin in the Kingdom of the Netherlands or a watershed area of less than 500000 square kilometers?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e <basin_country> ?e_1 . ?e_1 <pred:name> "Kingdom of the Netherlands" .  } UNION { ?e <watershed_area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "500000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Kingdom of the Netherlands
function: Relate
dependencies: 0
inputs: basin country
backward
function: FilterConcept
dependencies: 1
inputs: river
function: FindAll
function: FilterNum
dependencies: 3
inputs: watershed area
500000 square kilometre
<
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3