Question: Which movie is longer, The Messenger (the one that has Samantha Morton as a cast member) or Radio (the one that has S. Epatha Merkerson as a cast member)?
Choices: The Towering Inferno
The Hunchback of Notre Dame
Rebecca
The Messenger
Curse of the Golden Flower
Pleasantville
Radio
Talk to Her
A Prairie Home Companion
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Messenger" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Samantha Morton" .   } UNION { ?e <pred:name> "Radio" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "S. Epatha Merkerson" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Samantha Morton
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Messenger
function: And
dependencies: 1
2
function: Find
inputs: S. Epatha Merkerson
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Radio
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Messenger