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