Question: Which area is smaller, Falkirk (the one whose OS grid reference is NS887801) or Birkenhead?
Choices:
Wimbledon
Doncaster
Edmonton
Blackburn
Colchester
Royal Tunbridge Wells
Birkenhead
Wigan
Falkirk
South Shields
Answer: Falkirk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Falkirk" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "NS887801" . } UNION { ?e <pred:name> "Birkenhead" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Falkirk
function: FilterStr
dependencies: 0
inputs: OS grid reference
NS887801
function: Find
inputs: Birkenhead
function: SelectBetween
dependencies: 1
2
inputs: area
less