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