Question: How many water areas are a part of the Atlantic Ocean or are located in Idaho whose elevation is 1524 meters 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> "water area" .  { ?e <part_of> ?e_1 . ?e_1 <pred:name> "Atlantic Ocean" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Idaho" . ?e_1 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "1524"^^xsd:double .  } }
Program:
function: Find
inputs: Atlantic Ocean
function: Relate
dependencies: 0
inputs: part of
backward
function: FilterConcept
dependencies: 1
inputs: water area
function: Find
inputs: Idaho
function: FilterNum
dependencies: 3
inputs: elevation above sea level
1524 metre
=
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: water area
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 4