Question: Which movie is shorter, Peter Pan (the one whose distributor is Paramount Pictures) or Louisiana (the one whose producer is Jesse Louis Lasky)?
Choices:
The Fifth Element
The Towering Inferno
Training Day
Louisiana
Rebecca
Pleasantville
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
Peter Pan
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Peter Pan
function: And
dependencies: 1
2
function: Find
inputs: Jesse Louis Lasky
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Louisiana
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peter Pan" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } UNION { ?e <pred:name> "Louisiana" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Jesse Louis Lasky" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Louisiana