Question: Does Hesse or North Rhine-Westphalia have the higher elevation?
Choices:
Hesse
Schleswig-Holstein
North Rhine-Westphalia
Bavaria
Thuringia
Lower Saxony
Saxony-Anhalt
Rhineland-Palatinate
Brandenburg
Mecklenburg-Vorpommern
Program:
function: Find
inputs: Hesse
function: Find
inputs: North Rhine-Westphalia
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hesse" .  } UNION { ?e <pred:name> "North Rhine-Westphalia" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hesse