Question: How many Illinois counties are situated in Illinois (that is the lowest point of the Mississippi River) and share a border with Logan County (that shares a border with Tazewell County)?
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> "county of Illinois" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Illinois" . ?e_1 <lowest_point> ?e_2 . ?e_2 <pred:name> "Mississippi River" .  ?e_3 <shares_border_with> ?e . ?e_3 <pred:name> "Logan County" . ?e_4 <shares_border_with> ?e_3 . ?e_4 <pred:name> "Tazewell County" .  }
Program:
function: Find
inputs: Mississippi River
function: Relate
dependencies: 0
inputs: lowest point
backward
function: Find
inputs: Illinois
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of Illinois
function: Find
inputs: Tazewell County
function: Relate
dependencies: 6
inputs: shares border with
forward
function: Find
inputs: Logan County
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: shares border with
forward
function: FilterConcept
dependencies: 10
inputs: county of Illinois
function: And
dependencies: 5
11
function: Count
dependencies: 12
Answer: 3