Question: Does North Island or Greenland with elevation of 3694 metre above sea level have greater elevation (above sea level)?
Choices:
Long Island
Greenland
Trinidad
Maui
Cyprus
North Island
Hawaii
Ireland
Puerto Rico
Newfoundland
Program:
function: Find
inputs: Greenland
function: FilterNum
dependencies: 0
inputs: elevation above sea level
3694 metre
=
function: Find
inputs: North Island
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greenland" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "3694"^^xsd:double . } UNION { ?e <pred:name> "North Island" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Greenland