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