Question: How many human settlements began outside of 1894 or have an above sea level elevation greater than 8400 metres?
Choices:
8
9
10
11
12
13
14
15
16
17
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1894 ) .  } UNION { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v > "8400"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1894
!=
function: FilterConcept
dependencies: 1
inputs: human settlement
function: FindAll
function: FilterNum
dependencies: 3
inputs: elevation above sea level
8400 metre
>
function: FilterConcept
dependencies: 4
inputs: human settlement
function: Or
dependencies: 2
5
function: Count
dependencies: 6