Question: Is the longer work Hamlet, produced by Castle Rock Entertainment, or the Ghostbusters that comes after Ghostbusters II?
Choices: Ghostbusters
Curse of the Golden Flower
The Hunchback of Notre Dame
Hamlet
Pleasantville
Talk to Her
Training Day
The Towering Inferno
A Prairie Home Companion
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Castle Rock Entertainment" .   } UNION { ?e <pred:name> "Ghostbusters" . ?e <follows> ?e_2 . ?e_2 <pred:name> "Ghostbusters II" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Castle Rock Entertainment
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: Ghostbusters II
function: Relate
dependencies: 4
inputs: follows
backward
function: Find
inputs: Ghostbusters
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Ghostbusters