Question: Which one, Rochdale (the one whose postal code is OL16) or Dunfermline, has less population?
Choices:
Blackburn
Wigan
Doncaster
Dunfermline
South Shields
Rochdale
Colchester
Edmonton
Macclesfield
Wimbledon
Program:
function: Find
inputs: Rochdale
function: FilterStr
dependencies: 0
inputs: postal code
OL16
function: Find
inputs: Dunfermline
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rochdale" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "OL16" . } UNION { ?e <pred:name> "Dunfermline" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dunfermline