Question: Is the Staten Island produced by Luc Besson or Twilight Zone: The Movie the shorter of the two?
Choices:
The Hunchback of Notre Dame
Twilight Zone: The Movie
Pleasantville
Staten Island
Training Day
Talk to Her
The Fifth Element
Rebecca
Curse of the Golden Flower
The Towering Inferno
Program:
function: Find
inputs: Luc Besson
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Staten Island
function: And
dependencies: 1
2
function: Find
inputs: Twilight Zone: The Movie
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Staten Island" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Luc Besson" .   } UNION { ?e <pred:name> "Twilight Zone: The Movie" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Staten Island