Question: Which movie is longer, Dreamgirls or The Damned (the one that has Oliver Reed as a cast member)?
Choices: Rebecca
Training Day
The Damned
The Hunchback of Notre Dame
Talk to Her
The Fifth Element
Pleasantville
Dreamgirls
Curse of the Golden Flower
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dreamgirls" .  } UNION { ?e <pred:name> "The Damned" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Oliver Reed" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dreamgirls
function: Find
inputs: Oliver Reed
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Damned
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Dreamgirls