Question: Which area has less elevation (above sea level), Kumasi or Mashhad?
Choices:
Mashhad
Dundee
Santo Domingo
Kumasi
Kilkenny
Trieste
Chihuahua
Cork
Bergen
Abidjan
Program:
function: Find
inputs: Kumasi
function: Find
inputs: Mashhad
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kumasi" .  } UNION { ?e <pred:name> "Mashhad" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kumasi