Question: Which movie is shorter, The Weather Man or Abraham Lincoln (the one whose producer is Joseph M. Schenck)?
Choices: Curse of the Golden Flower
Abraham Lincoln
The Fifth Element
The Weather Man
Training Day
Pleasantville
Talk to Her
Rebecca
A Prairie Home Companion
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Weather Man" .  } UNION { ?e <pred:name> "Abraham Lincoln" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Joseph M. Schenck" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Weather Man
function: Find
inputs: Joseph M. Schenck
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: Abraham Lincoln
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
Answer: Abraham Lincoln