Question: How many rivers either share a border with Rochester (the one that is located in time zone Central Time Zone) or are a tributary of Lake District?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Rochester" . ?e_1 <located_in_time_zone> ?e_2 . ?e_2 <pred:name> "Central Time Zone" .  } UNION { ?e_1 <tributary> ?e . ?e_1 <pred:name> "Lake District" .  } }
Program:
function: Find
inputs: Central Time Zone
function: Relate
dependencies: 0
inputs: located in time zone
backward
function: Find
inputs: Rochester
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: river
function: Find
inputs: Lake District
function: Relate
dependencies: 6
inputs: tributary
forward
function: FilterConcept
dependencies: 7
inputs: river
function: Or
dependencies: 5
8
function: Count
dependencies: 9