Question: Does the higher population count belong to Grimsby (OS grid reference TA279087) or Blackpool, headquarters of Blackpool F.C.?
Choices:
Colchester
Edmonton
Blackburn
South Shields
Royal Tunbridge Wells
Wigan
Wimbledon
Blackpool
Grimsby
Doncaster
Answer: Blackpool
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Grimsby" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "TA279087" . } UNION { ?e <pred:name> "Blackpool" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Blackpool F.C." . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Grimsby
function: FilterStr
dependencies: 0
inputs: OS grid reference
TA279087
function: Find
inputs: Blackpool F.C.
function: Relate
dependencies: 2
inputs: headquarters location
forward
function: Find
inputs: Blackpool
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
greater