Question: Which Pennsylvania county's capital is Lancaster, which belongs to the USA?
Choices:
Fayette County
Chester County
Allegheny County
Lycoming County
Franklin County
Dauphin County
Washington County
Lancaster County
Fulton County
Cumberland County
Answer: Lancaster County
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> "Lancaster" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Lancaster
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: county of Pennsylvania
function: What
dependencies: 5