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