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