Question: Which is bigger, area-wise: Hastings, occupying 29.72 square km, or Pietermaritzburg?
Choices:
Blackburn
South Shields
Wigan
Pietermaritzburg
Hastings
Edmonton
Colchester
Wimbledon
Doncaster
Royal Tunbridge Wells
Answer: Pietermaritzburg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hastings" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "29.72"^^xsd:double . } UNION { ?e <pred:name> "Pietermaritzburg" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hastings
function: FilterNum
dependencies: 0
inputs: area
29.72 square kilometre
=
function: Find
inputs: Pietermaritzburg
function: SelectBetween
dependencies: 1
2
inputs: area
greater