Question: Which movie is shorter, Alien (the one whose release region is New Zealand) or Baraka?
Choices:
Alien
Rebecca
The Fifth Element
Pleasantville
Training Day
Baraka
Talk to Her
The Towering Inferno
A Prairie Home Companion
Curse of the Golden Flower
Program:
function: Find
inputs: New Zealand
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Alien
function: And
dependencies: 1
2
function: Find
inputs: Baraka
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alien" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "New Zealand" .   } UNION { ?e <pred:name> "Baraka" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Baraka