Question: How many human settlements are in Western Australia or have an elevation that is not equal to 5100 feet above sea level?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Western Australia" .  } UNION { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "foot" . ?pv <pred:value> ?v . FILTER ( ?v != "5100"^^xsd:double ) .  } }
Program:
function: Find
inputs: Western Australia
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: human settlement
function: FindAll
function: FilterNum
dependencies: 3
inputs: elevation above sea level
5100 foot
!=
function: FilterConcept
dependencies: 4
inputs: human settlement
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3