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