Question: How many sovereign states have a life expectancy less than 65 years or whose Human Development Index is not 0.7?
Choices: 125
126
127
128
129
130
131
132
133
134
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" .  { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v < "65"^^xsd:double ) .  } UNION { ?e <Human_Development_Index> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "0.7"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: life expectancy
65 year
<
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: FindAll
function: FilterNum
dependencies: 3
inputs: Human Development Index
0.7
!=
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 125