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