Question: Which US state is the location of the administrative division Wood County, with the capital Parkersburg?
Choices:
Wisconsin
Illinois
Florida
Massachusetts
West Virginia
Iowa
Kentucky
Tennessee
Missouri
Ohio
Answer: West Virginia
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Wood County" . ?e_2 <capital_of> ?e_1 . ?e_2 <pred:name> "Parkersburg" .   }
Program:
function: Find
inputs: Parkersburg
function: Relate
dependencies: 0
inputs: capital of
forward
function: Find
inputs: Wood County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: What
dependencies: 5