Question: Is Sacramento or Bay City lower in elevation?
Choices:
Greenville
Boulder
Compton
Sacramento
Lansing
Franklin
Waukegan
Columbus
Bay City
New Haven
Program:
function: Find
inputs: Sacramento
function: Find
inputs: Bay City
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sacramento" .  } UNION { ?e <pred:name> "Bay City" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sacramento