Question: Which Maryland cunty has the capital Frederick (the one whose postal code is 21701)?
Choices:
Harford County
Prince George's County
Carroll County
Baltimore County
Allegany County
Charles County
Frederick County
Cecil County
Howard County
Anne Arundel County
Answer: Frederick County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maryland" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Frederick" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "21701" .   }
Program:
function: Find
inputs: Frederick
function: FilterStr
dependencies: 0
inputs: postal code
21701
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: county of Maryland
function: What
dependencies: 3