Question: Which one has less area, Hastings (in the United Kingdom) or Woking (in England)?
Choices: Royal Tunbridge Wells
Colchester
Blackburn
Wigan
Hastings
Macclesfield
Edmonton
Wimbledon
Woking
Doncaster
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hastings" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } UNION { ?e <pred:name> "Woking" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "GU21, GU22" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Hastings
function: And
dependencies: 1
2
function: Find
inputs: Woking
function: FilterStr
dependencies: 4
inputs: postal code
GU21, GU22
function: SelectBetween
dependencies: 3
5
inputs: area
less
Answer: Hastings