Question: Which has greater elevation above sea level, Pietermaritzburg or Toowoomba
Choices:
Wigan
Royal Tunbridge Wells
Toowoomba
Pietermaritzburg
Wimbledon
South Shields
Edmonton
Doncaster
Macclesfield
Blackburn
Program:
function: Find
inputs: Pietermaritzburg
function: Find
inputs: Toowoomba
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pietermaritzburg" .  } UNION { ?e <pred:name> "Toowoomba" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Toowoomba