Question: Which movie is shorter, The Specialist (the one that has Eric Roberts as a cast member) or All Quiet on the Western Front (the one that has Ian Holm as a cast member)?
Choices: Pleasantville
The Specialist
Rebecca
All Quiet on the Western Front
The Fifth Element
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Specialist" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Eric Roberts" .   } UNION { ?e <pred:name> "All Quiet on the Western Front" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ian Holm" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Eric Roberts
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Specialist
function: And
dependencies: 1
2
function: Find
inputs: Ian Holm
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: All Quiet on the Western Front
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: The Specialist