Question: Which is shorter, The Man Who Knew Too Much (the one whose producer is Alfred Hitchcock) or The Godfather Part III?
Choices:
The Man Who Knew Too Much
The Godfather Part III
The Towering Inferno
Training Day
Rebecca
A Prairie Home Companion
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: Alfred Hitchcock
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Man Who Knew Too Much
function: And
dependencies: 1
2
function: Find
inputs: The Godfather Part III
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Man Who Knew Too Much" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Alfred Hitchcock" .   } UNION { ?e <pred:name> "The Godfather Part III" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Man Who Knew Too Much