Question: Which US city is the capital of the administrative territorial entity bordering Cass County, population 25,148?
Choices:
Franklin
Bowling Green
Oxnard
Lincoln
Bridgeport
Waltham
Omaha
Waukegan
Columbus
Kansas City
Answer: Lincoln
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "administrative territorial entity" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Cass County" . ?e_2 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "25148"^^xsd:double .   }
Program:
function: Find
inputs: Cass County
function: FilterNum
dependencies: 0
inputs: population
25148
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: Relate
dependencies: 3
inputs: capital
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: What
dependencies: 5