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