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