Question: Which has less area, Shropshire or Derbyshire (which is the residence of Samantha Morton)?
Choices:
Essex
Norfolk
Staffordshire
Cumbria
Northumberland
West Midlands
Shropshire
Derbyshire
Somerset
East Riding of Yorkshire
Program:
function: Find
inputs: Shropshire
function: Find
inputs: Samantha Morton
function: Relate
dependencies: 1
inputs: residence
forward
function: Find
inputs: Derbyshire
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shropshire" .  } UNION { ?e <pred:name> "Derbyshire" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Samantha Morton" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Derbyshire