Question: How many Alabama counties are an administrative division of Alabama (that is a part of the contiguous United States) or contain the Jacksonville administrative division?
Choices:
8
9
10
11
12
13
14
15
16
17
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Alabama" . ?e_2 <has_part> ?e_1 . ?e_2 <pred:name> "contiguous United States" .  } UNION { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Jacksonville" .  } }
Program:
function: Find
inputs: contiguous United States
function: Relate
dependencies: 0
inputs: has part
forward
function: Find
inputs: Alabama
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Alabama
function: Find
inputs: Jacksonville
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: county of Alabama
function: Or
dependencies: 5
8
function: Count
dependencies: 9