Question: Which area has higher elevation above sea level, Oldham (the one that is the birthplace of Siobhan Finneran) or Pietermaritzburg?
Choices:
Wigan
Blackburn
Pietermaritzburg
Royal Tunbridge Wells
Edmonton
Wimbledon
Colchester
Macclesfield
Oldham
South Shields
Program:
function: Find
inputs: Siobhan Finneran
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Oldham
function: And
dependencies: 1
2
function: Find
inputs: Pietermaritzburg
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oldham" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Siobhan Finneran" .   } UNION { ?e <pred:name> "Pietermaritzburg" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pietermaritzburg