Question: Does Wexford or Montclair have higher elevation above sea level?
Choices:
Verona
Ridgewood
West Orange
Wexford
Princeton
Belleville
Red Bank
Livingston
Montclair
Whanganui
Program:
function: Find
inputs: Wexford
function: Find
inputs: Montclair
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wexford" .  } UNION { ?e <pred:name> "Montclair" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Montclair