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