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