Question: What is the number of water area that are the terrain feature of English Channel or that have area not exactly 9700000 square kilometre
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "water area" .  { ?e_1 <located_on_terrain_feature> ?e . ?e_1 <pred:name> "English Channel" .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v != "9700000"^^xsd:double ) .  } }
Program:
function: Find
inputs: English Channel
function: Relate
dependencies: 0
inputs: located on terrain feature
forward
function: FilterConcept
dependencies: 1
inputs: water area
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
9700000 square kilometre
!=
function: FilterConcept
dependencies: 4
inputs: water area
function: Or
dependencies: 2
5
function: Count
dependencies: 6