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