Question: Which area is smaller, Cornwall or Norfolk (the one that is the death place of John Hurt)?
Choices:
East Riding of Yorkshire
Cumbria
Staffordshire
Cornwall
West Midlands
Northumberland
Warwickshire
Somerset
Essex
Derbyshire
Program:
function: Find
inputs: Cornwall
function: Find
inputs: John Hurt
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: Norfolk
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cornwall" .  } UNION { ?e <pred:name> "Norfolk" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "John Hurt" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cornwall