Question: How many geographic region comprise the river mouth of Amazon (the one whose elevation (above sea level) is 1 metre) or the continent with the location of Saint Lucia ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "geographic region" .  { ?e_1 <mouth_of_the_watercourse> ?e . ?e_1 <pred:name> "Amazon" . ?e_1 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "1"^^xsd:double .  } UNION { ?e_1 <continent> ?e . ?e_1 <pred:name> "Saint Lucia" .  } }
Program:
function: Find
inputs: Amazon
function: FilterNum
dependencies: 0
inputs: elevation above sea level
1 metre
=
function: Relate
dependencies: 1
inputs: mouth of the watercourse
forward
function: FilterConcept
dependencies: 2
inputs: geographic region
function: Find
inputs: Saint Lucia
function: Relate
dependencies: 4
inputs: continent
forward
function: FilterConcept
dependencies: 5
inputs: geographic region
function: Or
dependencies: 3
6
function: Count
dependencies: 7