Question: How many sovereign states have a Human Development Index value below 1.0 or occupy more than 45 square verstas?
Choices:
116
117
118
119
120
121
122
123
124
125
Answer: 123
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" .  { ?e <Human_Development_Index> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "1.0"^^xsd:double ) .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square versta" . ?pv <pred:value> ?v . FILTER ( ?v > "45"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: Human Development Index
1.0
<
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
45 square versta
>
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Or
dependencies: 2
5
function: Count
dependencies: 6