Question: Is the longer work Anna Karenina, with Basil Rathbone as a cast member, or Howard the Duck, with David Paymer as a cast member?
Choices:
Pleasantville
A Prairie Home Companion
Howard the Duck
Curse of the Golden Flower
Anna Karenina
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Training Day
The Fifth Element
Answer: Howard the Duck
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anna Karenina" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Basil Rathbone" .   } UNION { ?e <pred:name> "Howard the Duck" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "David Paymer" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Basil Rathbone
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 1
2
function: Find
inputs: David Paymer
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Howard the Duck
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater