Question: How many administrative territorial entities have a projected lifespan other than 11.9 years or occupy under 160 square miles?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" .  { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v != "11.9"^^xsd:double ) .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square mile" . ?pv <pred:value> ?v . FILTER ( ?v < "160"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: life expectancy
11.9 year
!=
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
160 square mile
<
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 7