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