Question: How many counties of Illinois are located in Illinois (location of Kellogg School of Management) and count the population that is not 1000000 ?
Choices:
9
10
11
12
13
14
15
16
17
18
Program:
function: Find
inputs: Kellogg School of Management
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
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: FindAll
function: FilterNum
dependencies: 6
inputs: population
1000000
!=
function: FilterConcept
dependencies: 7
inputs: county of Illinois
function: And
dependencies: 5
8
function: Count
dependencies: 9
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_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Kellogg School of Management" .  ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "1000000"^^xsd:double ) .  }
Answer: 18