Question: Tell me the one that has a bigger elevation (over sea level), Maastricht or Arnhem
Choices:
Hilversum
Maastricht
Amsterdam
Arnhem
Dordrecht
Leiden
Groningen
Delft
Alkmaar
Nijmegen
Program:
function: Find
inputs: Maastricht
function: Find
inputs: Arnhem
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Maastricht" .  } UNION { ?e <pred:name> "Arnhem" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Maastricht