Question: Which movie is shorter, George Harrison: Living in the Material World or The Contender (the one that has Sam Elliott as a cast member)?
Choices:
Pleasantville
Training Day
The Towering Inferno
Talk to Her
George Harrison: Living in the Material World
The Contender
Curse of the Golden Flower
Rebecca
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: George Harrison: Living in the Material World
function: Find
inputs: Sam Elliott
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Contender
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "George Harrison: Living in the Material World" .  } UNION { ?e <pred:name> "The Contender" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sam Elliott" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Contender