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