Question: Which one has more elevation above sea level between Winnipeg and Kandy?
Choices:
Kingston
Trieste
Chihuahua
Winnipeg
Abidjan
Dundee
Kandy
Bergen
Cork
Santo Domingo
Program:
function: Find
inputs: Winnipeg
function: Find
inputs: Kandy
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winnipeg" .  } UNION { ?e <pred:name> "Kandy" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kandy