Question: How many mountain ranges either have a length not equal to 530 km or connect to the Iberian Peninsula?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: length
530 kilometre
!=
function: FilterConcept
dependencies: 1
inputs: mountain range
function: Find
inputs: Iberian Peninsula
function: Relate
dependencies: 3
inputs: connects with
forward
function: FilterConcept
dependencies: 4
inputs: mountain range
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "mountain range" .  { ?e <length> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> ?v . FILTER ( ?v != "530"^^xsd:double ) .  } UNION { ?e_1 <connects_with> ?e . ?e_1 <pred:name> "Iberian Peninsula" .  } }
Answer: 6