Question: York, population 43,718, is the capital of which Pennsylvania county?
Choices:
Warren County
Westmoreland County
Cumberland County
Somerset County
Lehigh County
York County
Allegheny County
Fayette County
Dauphin County
Bucks County
Program:
function: Find
inputs: York
function: FilterNum
dependencies: 0
inputs: population
43718
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: county of Pennsylvania
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "York" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "43718"^^xsd:double .   }
Answer: York County