Question: Which Pennsylvania county contains York (postal code of 17401)?
Choices:
Allegheny County
Cumberland County
Greene County
Fayette County
Lehigh County
Franklin County
Westmoreland County
Luzerne County
Warren County
York County
Program:
function: Find
inputs: York
function: FilterStr
dependencies: 0
inputs: postal code
17401
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
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 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "York" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "17401" .   }
Answer: York County