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