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