Question: How many Michigan counties have a population of less than 2.2 and share a border with Jackson County (the one that is an administrative division of Michigan)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Michigan" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "2.2"^^xsd:double ) . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Jackson County" . ?e_2 <contains_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Michigan" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
2.2
<
function: FilterConcept
dependencies: 1
inputs: county of Michigan
function: Find
inputs: Michigan
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: Find
inputs: Jackson County
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: shares border with
forward
function: FilterConcept
dependencies: 7
inputs: county of Michigan
function: And
dependencies: 2
8
function: Count
dependencies: 9