Question: Does Richmond, U.K. or Slough have less area?
Choices:
South Shields
Edmonton
Wimbledon
Macclesfield
Colchester
Richmond
Royal Tunbridge Wells
Doncaster
Wigan
Slough
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Richmond
function: And
dependencies: 1
2
function: Find
inputs: Slough
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richmond" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } UNION { ?e <pred:name> "Slough" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Richmond