Question: Which area has higher elevation above sea level, Kabul (the one that is the capital of Afghanistan) or Frankfurt?
Choices: Kilkenny
Chihuahua
Abidjan
Santo Domingo
Kabul
Kingston
Bergen
Dundee
Cork
Frankfurt
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kabul" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Afghanistan" .   } UNION { ?e <pred:name> "Frankfurt" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Afghanistan
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Kabul
function: And
dependencies: 1
2
function: Find
inputs: Frankfurt
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
Answer: Kabul