Question: Is the shorter work The Imaginarium of Doctor Parnassus or Cuba, with Denholm Elliott as a cast member?
Choices:
Cuba
The Imaginarium of Doctor Parnassus
Pleasantville
Talk to Her
The Fifth Element
The Towering Inferno
The Hunchback of Notre Dame
Training Day
A Prairie Home Companion
Rebecca
Program:
function: Find
inputs: The Imaginarium of Doctor Parnassus
function: Find
inputs: Denholm Elliott
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Cuba
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Imaginarium of Doctor Parnassus" .  } UNION { ?e <pred:name> "Cuba" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Denholm Elliott" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cuba