Question: Is the elevation (above sea level) greater for Livonia or Ann Arbor?
Choices:
Ann Arbor
Franklin
Livonia
New Haven
Waukegan
Columbus
Compton
Lansing
Oakland
Boulder
Program:
function: Find
inputs: Livonia
function: Find
inputs: Ann Arbor
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Livonia" .  } UNION { ?e <pred:name> "Ann Arbor" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ann Arbor