Question: Tell me the one with longer duration, The Bourne Identity (the one with Richard Chamberlain in its cast) or North by Northwest.
Choices:
The Music Man
All Quiet on the Western Front
A Christmas Carol
North by Northwest
The Challenge
The Three Musketeers
Shackleton
The Goodbye Girl
The Bourne Identity
The Late Shift
Program:
function: Find
inputs: Richard Chamberlain
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Bourne Identity
function: And
dependencies: 1
2
function: Find
inputs: North by Northwest
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Bourne Identity" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard Chamberlain" .   } UNION { ?e <pred:name> "North by Northwest" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Bourne Identity