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