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