Question: Which one, Lancashire or Northumberland, has less area?
Choices:
Warwickshire
Northumberland
West Midlands
Essex
Somerset
Staffordshire
Norfolk
Cumbria
Lancashire
Derbyshire
Program:
function: Find
inputs: Lancashire
function: Find
inputs: Northumberland
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lancashire" .  } UNION { ?e <pred:name> "Northumberland" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lancashire