Question: Which has more cost, The Perks of Being a Wallflower released in South Africa or The Shawshank Redemption?
Choices:
The Towering Inferno
The Fifth Element
Pleasantville
The Shawshank Redemption
Training Day
The Perks of Being a Wallflower
The Hunchback of Notre Dame
Curse of the Golden Flower
A Prairie Home Companion
Rebecca
Program:
function: Find
inputs: South Africa
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Perks of Being a Wallflower
function: And
dependencies: 1
2
function: Find
inputs: The Shawshank Redemption
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Perks of Being a Wallflower" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "South Africa" .   } UNION { ?e <pred:name> "The Shawshank Redemption" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Shawshank Redemption