Question: Which movie is shorter, Breaking Away or The Man in the Iron Mask (the one that has Richard Chamberlain as a cast member)?
Choices:
The Challenge
All Quiet on the Western Front
Breaking Away
The Late Shift
A Christmas Carol
The Man in the Iron Mask
A Streetcar Named Desire
The Music Man
The Goodbye Girl
Shackleton
Program:
function: Find
inputs: Breaking Away
function: Find
inputs: Richard Chamberlain
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Man in the Iron Mask
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Breaking Away" .  } UNION { ?e <pred:name> "The Man in the Iron Mask" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard Chamberlain" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Man in the Iron Mask