Question: Which movie is longer, The Life and Death of Peter Sellers or The Firm (the one that has Jerry Weintraub as a cast member)?
Choices: The Life and Death of Peter Sellers
The Firm
Curse of the Golden Flower
Rebecca
The Towering Inferno
Pleasantville
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Life and Death of Peter Sellers" .  } UNION { ?e <pred:name> "The Firm" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jerry Weintraub" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Life and Death of Peter Sellers
function: Find
inputs: Jerry Weintraub
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Firm
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: The Firm