Question: Which has less population, Hamilton whose OS grid reference is NS712557 or Bournemouth whose population is 183491?
Choices:
Doncaster
South Shields
Royal Tunbridge Wells
Macclesfield
Edmonton
Blackburn
Hamilton
Wigan
Colchester
Bournemouth
Answer: Hamilton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "NS712557" . } UNION { ?e <pred:name> "Bournemouth" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "183491"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hamilton
function: FilterStr
dependencies: 0
inputs: OS grid reference
NS712557
function: Find
inputs: Bournemouth
function: FilterNum
dependencies: 2
inputs: population
183491
=
function: SelectBetween
dependencies: 1
3
inputs: population
less