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