Question: Is the longer work Rush Hour, with Philip Baker Hall as a cast member, or the silent film Cleopatra?
Choices:
The Fifth Element
Pleasantville
Rush Hour
Curse of the Golden Flower
Cleopatra
The Towering Inferno
Talk to Her
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Answer: Cleopatra
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rush Hour" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Philip Baker Hall" .   } UNION { ?e <pred:name> "Cleopatra" . ?e <genre> ?e_2 . ?e_2 <pred:name> "silent film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Philip Baker Hall
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Rush Hour
function: And
dependencies: 1
2
function: Find
inputs: silent film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Cleopatra
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater