Question: How many states in the US contain the administrative division, or the administrative territorial entity, with Frankfort as its capital ?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "administrative territorial entity" . ?e_1 <capital> ?e_2 . ?e_2 <pred:name> "Frankfort" .   }
Program:
function: Find
inputs: Frankfort
function: Relate
dependencies: 0
inputs: capital
backward
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 3
inputs: state of the United States
function: Count
dependencies: 4