Question: Which movie is shorter, The Silence of the Lambs or Sleepy Hollow (the one that has Richard Griffiths as a cast member)?
Choices:
The Fifth Element
The Silence of the Lambs
The Towering Inferno
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Sleepy Hollow
Pleasantville
Training Day
Curse of the Golden Flower
Program:
function: Find
inputs: The Silence of the Lambs
function: Find
inputs: Richard Griffiths
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Sleepy Hollow
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Silence of the Lambs" .  } UNION { ?e <pred:name> "Sleepy Hollow" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard Griffiths" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sleepy Hollow