Question: Is the elevation above sea level of Montclair higher than Red Bank?
Choices:
Princeton
Ridgewood
Livingston
Belleville
North Hollywood
West Orange
Wexford
Whanganui
Red Bank
Verona
Program:
function: Find
inputs: Montclair
function: Find
inputs: Red Bank
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Montclair" .  } UNION { ?e <pred:name> "Red Bank" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Red Bank