Question: Which has less area, Cambridge where Syd Barrett died or Cairns?
Choices:
Chihuahua
Trieste
Cork
Bergen
Cairns
Kilkenny
Cambridge
Dundee
Santo Domingo
Abidjan
Program:
function: Find
inputs: Syd Barrett
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Cambridge
function: And
dependencies: 1
2
function: Find
inputs: Cairns
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cambridge" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Syd Barrett" .   } UNION { ?e <pred:name> "Cairns" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cambridge