Question: How many counties in Texas are an administrative division of Texas (the one that shares border with Oklahoma) ?
Choices: 11
12
13
14
15
16
17
18
19
20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Texas" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Oklahoma" .   }
Program:
function: Find
inputs: Oklahoma
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Texas
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Texas
function: Count
dependencies: 5
Answer: 17