Question: Which one, Bleach: Fade to Black or The Bourne Identity (the one that has Denholm Elliott as a cast member), has greater duration?
Choices:
A Christmas Carol
The Late Shift
Shackleton
The Bourne Identity
The Music Man
All Quiet on the Western Front
Bleach: Fade to Black
A Streetcar Named Desire
The Three Musketeers
The Goodbye Girl
Program:
function: Find
inputs: Bleach: Fade to Black
function: Find
inputs: Denholm Elliott
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Bourne Identity
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bleach: Fade to Black" .  } UNION { ?e <pred:name> "The Bourne Identity" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Denholm Elliott" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Bourne Identity