Question: Which has more people, Dover (the one whose WOEID is 18382) or Luton?
Choices:
Edmonton
Doncaster
Blackburn
Macclesfield
Dover
Luton
Wimbledon
Royal Tunbridge Wells
Colchester
South Shields
Program:
function: Find
inputs: Dover
function: FilterStr
dependencies: 0
inputs: WOEID
18382
function: Find
inputs: Luton
function: SelectBetween
dependencies: 1
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dover" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "18382" . } UNION { ?e <pred:name> "Luton" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Luton