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