Question: Is the shorter work Willy Wonka & the Chocolate Factory or Kick-Ass, with Nicolas Cage as a cast member?
Choices:
The Fifth Element
Kick-Ass
Willy Wonka & the Chocolate Factory
Curse of the Golden Flower
The Towering Inferno
Pleasantville
A Prairie Home Companion
Training Day
The Hunchback of Notre Dame
Talk to Her
Program:
function: Find
inputs: Willy Wonka & the Chocolate Factory
function: Find
inputs: Nicolas Cage
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Kick-Ass
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Willy Wonka & the Chocolate Factory" .  } UNION { ?e <pred:name> "Kick-Ass" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Nicolas Cage" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Willy Wonka & the Chocolate Factory