Question: What are the number of islands whose life expectancy is not equal to 35 year or whose width is greater than 120 millimetre ?
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> "island" .  { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v != "35"^^xsd:double ) .  } UNION { ?e <width> ?pv . ?pv <pred:unit> "millimetre" . ?pv <pred:value> ?v . FILTER ( ?v > "120"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: life expectancy
35 year
!=
function: FilterConcept
dependencies: 1
inputs: island
function: FindAll
function: FilterNum
dependencies: 3
inputs: width
120 millimetre
>
function: FilterConcept
dependencies: 4
inputs: island
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2