Question: How many counties are in Illinois (that contains the Cook County administrative division) or hold the Gainesville administrative division?
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 Illinois" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Illinois" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Cook County" .  } UNION { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Gainesville" .  } }
Program:
function: Find
inputs: Cook County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Illinois
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of Illinois
function: Find
inputs: Gainesville
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: county of Illinois
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 18