Question: hat is the administrative territorial entity that shares a border with Coconino County and another border with Kane County (whose population is 7153)?
Choices:
Mohave County
Washington County
African Union
Kent County
Lee County
Delaware County
Cass County
Washoe County
Orange County
San Juan County
Answer: San Juan County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Kane County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "7153"^^xsd:double .  ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Coconino County" .  }
Program:
function: Find
inputs: Kane County
function: FilterNum
dependencies: 0
inputs: population
7153
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: Find
inputs: Coconino County
function: Relate
dependencies: 4
inputs: shares border with
backward
function: FilterConcept
dependencies: 5
inputs: administrative territorial entity
function: And
dependencies: 3
6
function: What
dependencies: 7