Question: Which Arizona county contains the capital Florence (the one that is the capital of Pinal County)?
Choices:
Santa Cruz County
Pinal County
Gila County
Navajo County
Cochise County
Maricopa County
Mohave County
Apache County
Yavapai County
Pima County
Answer: Pinal County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Arizona" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Florence" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Pinal County" .   }
Program:
function: Find
inputs: Pinal County
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Florence
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: county of Arizona
function: What
dependencies: 5