Question: Which area has fewer people, Dunfermline or Worthing?
Choices:
Doncaster
Dunfermline
South Shields
Royal Tunbridge Wells
Wimbledon
Wigan
Blackburn
Macclesfield
Worthing
Edmonton
Program:
function: Find
inputs: Dunfermline
function: Find
inputs: Worthing
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dunfermline" .  } UNION { ?e <pred:name> "Worthing" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dunfermline