Question: Which is shorter: Heaven Can Wait, scripted by Ernst Lubitsch, or Howard the Duck, executive produced by George Lucas?
Choices: A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
Heaven Can Wait
Curse of the Golden Flower
Training Day
Talk to Her
The Towering Inferno
The Fifth Element
Howard the Duck
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heaven Can Wait" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Ernst Lubitsch" .   } UNION { ?e <pred:name> "Howard the Duck" . ?e <executive_producer> ?e_2 . ?e_2 <pred:name> "George Lucas" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Ernst Lubitsch
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Heaven Can Wait
function: And
dependencies: 1
2
function: Find
inputs: George Lucas
function: Relate
dependencies: 4
inputs: executive producer
backward
function: Find
inputs: Howard the Duck
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Heaven Can Wait