Question: How many towns in the United States are the capital of the county in Arizona where the capital of Florence (the one that is the capital of Pinal County) is located?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Arizona" . ?e_2 <capital_of> ?e_1 . ?e_2 <pred:name> "Florence" . ?e_2 <capital_of> ?e_3 . ?e_3 <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: Relate
dependencies: 5
inputs: capital
forward
function: FilterConcept
dependencies: 6
inputs: town of the United States
function: Count
dependencies: 7