Question: Which one, Superman (the one that is followed by Superman II: The Richard Donner Cut) or The Way We Were (the one whose producer is Ray Stark), has greater duration?
Choices: The Hunchback of Notre Dame
Superman
The Way We Were
A Prairie Home Companion
Rebecca
Talk to Her
Training Day
The Fifth Element
Curse of the Golden Flower
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Superman" . ?e_1 <follows> ?e . ?e_1 <pred:name> "Superman II: The Richard Donner Cut" .   } UNION { ?e <pred:name> "The Way We Were" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Ray Stark" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Superman II: The Richard Donner Cut
function: Relate
dependencies: 0
inputs: follows
forward
function: Find
inputs: Superman
function: And
dependencies: 1
2
function: Find
inputs: Ray Stark
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: The Way We Were
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Superman