Question: Between Crawley or Pietermaritzburg, which takes up the bigger area?
Choices:
Pietermaritzburg
South Shields
Blackburn
Wimbledon
Wigan
Crawley
Edmonton
Doncaster
Colchester
Royal Tunbridge Wells
Program:
function: Find
inputs: Crawley
function: Find
inputs: Pietermaritzburg
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Crawley" .  } UNION { ?e <pred:name> "Pietermaritzburg" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pietermaritzburg