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