Question: Which area has higher elevation above sea level, Duisburg or Ontario (the one that is the filming location of The Hangover Part II)?
Choices:
Aachen
Fort Smith
Dnipro
Duisburg
Stuttgart
Ontario
Halle (Saale)
Wuppertal
Utrecht
Lyon
Program:
function: Find
inputs: Duisburg
function: Find
inputs: The Hangover Part II
function: Relate
dependencies: 1
inputs: filming location
forward
function: Find
inputs: Ontario
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Duisburg" .  } UNION { ?e <pred:name> "Ontario" . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "The Hangover Part II" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ontario