Question: Which area has higher elevation above sea level, Haverhill or New Rochelle?
Choices:
Oakland
Boulder
New Rochelle
Columbus
Franklin
Greenville
Lansing
New Haven
Compton
Waukegan
Program:
function: Find
inputs: Haverhill
function: Find
inputs: New Rochelle
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Haverhill" .  } UNION { ?e <pred:name> "New Rochelle" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: New Rochelle