Question: Which has lower elevation above sea level, Valletta or Irvine (the one whose local dialing code is 01294)?
Choices:
Macclesfield
Irvine
Wimbledon
Wigan
Colchester
Blackburn
Royal Tunbridge Wells
Doncaster
Edmonton
Valletta
Program:
function: Find
inputs: Valletta
function: Find
inputs: Irvine
function: FilterStr
dependencies: 1
inputs: local dialing code
01294
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Valletta" . } UNION { ?e <pred:name> "Irvine" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01294" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Irvine