Question: Which movie is longer, The Diary of Anne Frank (the one that has Maximilian Schell as a cast member) or Coronado (the one that has John Rhys-Davies as a cast member)?
Choices: Shackleton
All Quiet on the Western Front
The Goodbye Girl
The Challenge
A Christmas Carol
The Late Shift
Coronado
The Diary of Anne Frank
The Three Musketeers
The Music Man
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Diary of Anne Frank" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Maximilian Schell" .   } UNION { ?e <pred:name> "Coronado" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "John Rhys-Davies" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Maximilian Schell
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Diary of Anne Frank
function: And
dependencies: 1
2
function: Find
inputs: John Rhys-Davies
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Coronado
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Diary of Anne Frank