Question: What Pennsylvania city is located in the county of Pennsylvania that is named after York (whose official website is http://www.york.gov.uk/)?
Choices:
Williamsport
Chester
Bethlehem
York
Scranton
Wilkes-Barre
Johnstown
Erie
Greensburg
Philadelphia
Program:
function: Find
inputs: York
function: FilterStr
dependencies: 0
inputs: official website
http://www.york.gov.uk/
function: Relate
dependencies: 1
inputs: named after
backward
function: FilterConcept
dependencies: 2
inputs: county of Pennsylvania
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: city of Pennsylvania
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Pennsylvania" . ?e_1 <named_after> ?e_3 . ?e_3 <pred:name> "York" . ?e_3 <official_website> ?pv . ?pv <pred:value> "http://www.york.gov.uk/" .   }
Answer: York