Question: Which Pennsylvania city is the capital of Pennsylvania?
Choices:
Johnstown
York
Philadelphia
Easton
Greensburg
Chester
Scranton
Wilkes-Barre
Harrisburg
Bethlehem
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: capital
forward
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Pennsylvania" .   }
Answer: Harrisburg