Question: Which area is smaller, Johannesburg or Tokyo (the one that is the death place of Shohei Imamura)?
Choices: Tokyo
Abidjan
Santo Domingo
Johannesburg
Bergen
Trieste
Dundee
Kingston
Cork
Kilkenny
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Johannesburg" .  } UNION { ?e <pred:name> "Tokyo" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Shohei Imamura" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Johannesburg
function: Find
inputs: Shohei Imamura
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: Tokyo
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
Answer: Tokyo