Question: Which movie is shorter, The Specialist (the one whose producer is Jerry Weintraub) or Tomorrow Never Dies (the one whose distributor is Metro-Goldwyn-Mayer)?
Choices: Curse of the Golden Flower
Talk to Her
Training Day
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
The Specialist
Tomorrow Never Dies
A Prairie Home Companion
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Specialist" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Jerry Weintraub" .   } UNION { ?e <pred:name> "Tomorrow Never Dies" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Metro-Goldwyn-Mayer" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Jerry Weintraub
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Specialist
function: And
dependencies: 1
2
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Tomorrow Never Dies
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: The Specialist