Question: How many rivers are located n Central Time Zone or are less than 680 km long ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e <located_in_time_zone> ?e_1 . ?e_1 <pred:name> "Central Time Zone" .  } UNION { ?e <length> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "680"^^xsd:double ) .  } }
Program:
function: Find
inputs: Central Time Zone
function: Relate
dependencies: 0
inputs: located in time zone
backward
function: FilterConcept
dependencies: 1
inputs: river
function: FindAll
function: FilterNum
dependencies: 3
inputs: length
680 kilometre
<
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6