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