Question: Which has more elevation above sea level, Guadalajara, Mexico or Pyongyang?
Choices:
Chihuahua
Abidjan
Kingston
Cork
Pyongyang
Dundee
Kilkenny
Guadalajara
Santo Domingo
Trieste
Answer: Guadalajara
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guadalajara" . ?e <country> ?e_1 . ?e_1 <pred:name> "Mexico" .   } UNION { ?e <pred:name> "Pyongyang" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mexico
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Guadalajara
function: And
dependencies: 1
2
function: Find
inputs: Pyongyang
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater