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