Question: How many Illinois counties contain the administrative division of Waukegan or are an administrative division of Illinois (the one whose population is 7897241)?
Choices:
9
10
11
12
13
14
15
16
17
18
Program:
function: Find
inputs: Waukegan
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: county of Illinois
function: Find
inputs: Illinois
function: FilterNum
dependencies: 3
inputs: population
7897241
=
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 5
inputs: county of Illinois
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" .  { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Waukegan" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Illinois" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "7897241"^^xsd:double .  } }
Answer: 18