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