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