Question: Is My Man Godfrey, with David Niven as a cast member, or Stranger than Fiction the longer work?
Choices:
Curse of the Golden Flower
Rebecca
Pleasantville
The Fifth Element
My Man Godfrey
Talk to Her
Stranger than Fiction
Training Day
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: David Niven
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: My Man Godfrey
function: And
dependencies: 1
2
function: Find
inputs: Stranger than Fiction
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "My Man Godfrey" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David Niven" .   } UNION { ?e <pred:name> "Stranger than Fiction" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Stranger than Fiction