Question: Between Wigan or Blackpool, of postal code FY0-4, which has fewer inhabitants?
Choices:
Royal Tunbridge Wells
Wimbledon
South Shields
Macclesfield
Edmonton
Wigan
Basingstoke
Blackburn
Blackpool
Doncaster
Program:
function: Find
inputs: Wigan
function: Find
inputs: Blackpool
function: FilterStr
dependencies: 1
inputs: postal code
FY0-4
function: SelectBetween
dependencies: 0
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wigan" . } UNION { ?e <pred:name> "Blackpool" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "FY0-4" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Wigan