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