Question: Which movie is shorter, The End of the Affair (the one that has Van Johnson as a cast member) or As Good as It Gets?
Choices: Pleasantville
The Towering Inferno
As Good as It Gets
The Hunchback of Notre Dame
Talk to Her
Rebecca
A Prairie Home Companion
Training Day
Curse of the Golden Flower
The End of the Affair
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The End of the Affair" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Van Johnson" .   } UNION { ?e <pred:name> "As Good as It Gets" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Van Johnson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The End of the Affair
function: And
dependencies: 1
2
function: Find
inputs: As Good as It Gets
function: SelectBetween
dependencies: 3
4
inputs: duration
less
Answer: The End of the Affair