Question: Which has a larger area, Poole or Worthing?
Choices:
Colchester
Wimbledon
Royal Tunbridge Wells
Macclesfield
Doncaster
Worthing
South Shields
Blackburn
Poole
Wigan
Program:
function: Find
inputs: Worthing
function: Find
inputs: Poole
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Worthing" .  } UNION { ?e <pred:name> "Poole" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Poole