Question: Which has less elevation above sea level, Palm Springs, USA or Toowoomba?
Choices:
Palm Springs
Toowoomba
Colchester
Doncaster
Wigan
Royal Tunbridge Wells
Wimbledon
Edmonton
South Shields
Macclesfield
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Palm Springs
function: And
dependencies: 1
2
function: Find
inputs: Toowoomba
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palm Springs" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Toowoomba" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Palm Springs