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