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