Question: Is the elevation of Jalandhar or Gatineau the higher of the two?
Choices:
Trieste
Santo Domingo
Cork
Gatineau
Kingston
Abidjan
Chihuahua
Jalandhar
Kilkenny
Dundee
Program:
function: Find
inputs: Jalandhar
function: Find
inputs: Gatineau
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jalandhar" .  } UNION { ?e <pred:name> "Gatineau" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jalandhar