Question: Which US city is capital of the administrative territorial entity bordering Lake County (population 7829)?
Choices:
Long Branch
Duluth
Reno
Columbus
Montpelier
Royal Oak
Greenville
Bend
Santa Fe
Franklin
Answer: Reno
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> "Lake County" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "7829"^^xsd:double .   }
Program:
function: Find
inputs: Lake County
function: FilterNum
dependencies: 0
inputs: population
7829
=
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