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