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