Question: Which has higher elevation above sea level, Toowoomba or Blackpool (the one whose NUTS code is UKD42)?
Choices:
Blackburn
Edmonton
Toowoomba
Blackpool
Wigan
Macclesfield
Doncaster
South Shields
Colchester
Wimbledon
Program:
function: Find
inputs: Toowoomba
function: Find
inputs: Blackpool
function: FilterStr
dependencies: 1
inputs: NUTS code
UKD42
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Toowoomba" . } UNION { ?e <pred:name> "Blackpool" . ?e <NUTS_code> ?pv_1 . ?pv_1 <pred:value> "UKD42" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Toowoomba