Question: Which has less population, Suffolk whose population is 741900 or Northamptonshire?
Choices:
Derbyshire
Somerset
Staffordshire
Northamptonshire
West Midlands
Cumbria
Essex
Norfolk
Warwickshire
Suffolk
Program:
function: Find
inputs: Suffolk
function: FilterNum
dependencies: 0
inputs: population
741900
=
function: Find
inputs: Northamptonshire
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Suffolk" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "741900"^^xsd:double . } UNION { ?e <pred:name> "Northamptonshire" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Northamptonshire