Question: Which movie is shorter, The Rose or The Great Gatsby (produced by Jesse Louis Lasky)?
Choices:
Training Day
Talk to Her
The Towering Inferno
Pleasantville
Rebecca
The Great Gatsby
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Curse of the Golden Flower
Program:
function: Find
inputs: Jesse Louis Lasky
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 1
2
function: Find
inputs: The Rose
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Great Gatsby" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Jesse Louis Lasky" .   } UNION { ?e <pred:name> "The Rose" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Great Gatsby