Question: What number of time zones are in Kentucky, which partly contains the Ohio River, or have a less-than-10-hour offset?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "time zone" .  { ?e_1 <located_in_time_zone> ?e . ?e_1 <pred:name> "Kentucky" . ?e_1 <partially_contains> ?e_2 . ?e_2 <pred:name> "Ohio River" .  } UNION { ?e <timezone_offset> ?pv . ?pv <pred:unit> "hour" . ?pv <pred:value> ?v . FILTER ( ?v < "10"^^xsd:double ) .  } }
Program:
function: Find
inputs: Ohio River
function: Relate
dependencies: 0
inputs: partially contains
backward
function: Find
inputs: Kentucky
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in time zone
forward
function: FilterConcept
dependencies: 4
inputs: time zone
function: FindAll
function: FilterNum
dependencies: 6
inputs: timezone offset
10 hour
<
function: FilterConcept
dependencies: 7
inputs: time zone
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 12