Question: Which Pennsylvania city in the USA is the capital of Northampton County, an administrative division of Pennsylvania?
Choices:
York
Lancaster
Philadelphia
Wilkes-Barre
Easton
Greensburg
Johnstown
Bethlehem
Williamsport
Chester
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: Find
inputs: Northampton County
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: capital of
backward
function: FilterConcept
dependencies: 7
inputs: city of Pennsylvania
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <capital_of> ?e_2 . ?e_2 <pred:name> "Northampton County" . ?e_3 <contains_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Pennsylvania" .  }
Answer: Easton