Question: Which US city is the capital of Washington County (the one that contains the administrative division Hillsboro)?
Choices:
Columbus
Hillsboro
Hagerstown
Greenville
Miami Beach
Montpelier
Franklin
Joliet
Waukegan
Fayetteville
Program:
function: Find
inputs: Hillsboro
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Washington County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Washington County" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Hillsboro" .   }
Answer: Hillsboro