Question: Which area has higher elevation above sea level, Sarajevo (the one that is the capital of Federation of Bosnia and Herzegovina) or Cape Town?
Choices:
Cape Town
Tallinn
Moscow
Lausanne
Paris
Mexico City
New Delhi
Manila
Riga
Sarajevo
Answer: Cape Town
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sarajevo" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Federation of Bosnia and Herzegovina" .   } UNION { ?e <pred:name> "Cape Town" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Federation of Bosnia and Herzegovina
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Sarajevo
function: And
dependencies: 1
2
function: Find
inputs: Cape Town
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater