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