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