Question: Which work is shorter: Shane, or the Monte Carlo designed by Hans Dreier?
Choices:
The Fifth Element
Monte Carlo
Curse of the Golden Flower
Rebecca
Talk to Her
The Towering Inferno
Pleasantville
Shane
Training Day
A Prairie Home Companion
Program:
function: Find
inputs: Shane
function: Find
inputs: Hans Dreier
function: Relate
dependencies: 1
inputs: production designer
backward
function: Find
inputs: Monte Carlo
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shane" .  } UNION { ?e <pred:name> "Monte Carlo" . ?e <production_designer> ?e_1 . ?e_1 <pred:name> "Hans Dreier" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Monte Carlo