Question: Which has more people, Hove or Dunfermline?
Choices:
Colchester
Blackburn
Doncaster
Wimbledon
Hove
Wigan
Macclesfield
Dunfermline
Royal Tunbridge Wells
Edmonton
Program:
function: Find
inputs: Hove
function: Find
inputs: Dunfermline
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hove" .  } UNION { ?e <pred:name> "Dunfermline" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hove