Question: How many counties in Illinois are populated with less than 81000000 people and also border Clinton County (with the population of 37,786) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Clinton County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "37786"^^xsd:double .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v < "81000000"^^xsd:double ) .  }
Program:
function: Find
inputs: Clinton County
function: FilterNum
dependencies: 0
inputs: population
37786
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Illinois
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
81000000
<
function: FilterConcept
dependencies: 5
inputs: county of Illinois
function: And
dependencies: 3
6
function: Count
dependencies: 7