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