Question: Is the longer work Ferris Bueller's Day Off, or High Fidelity - with Tim Robbins as a cast member?
Choices:
High Fidelity
A Prairie Home Companion
Training Day
Rebecca
The Fifth Element
The Hunchback of Notre Dame
The Towering Inferno
Ferris Bueller's Day Off
Pleasantville
Talk to Her
Program:
function: Find
inputs: Ferris Bueller's Day Off
function: Find
inputs: Tim Robbins
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: High Fidelity
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ferris Bueller's Day Off" .  } UNION { ?e <pred:name> "High Fidelity" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tim Robbins" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: High Fidelity