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