Question: Which one was cheaper, The Master (the one that was nominated for Academy Award for Best Supporting Actor) or Brazil (the one whose release region is United Kingdom)?
Choices:
Rebecca
The Fifth Element
The Master
Pleasantville
The Hunchback of Notre Dame
Brazil
Training Day
Talk to Her
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: Academy Award for Best Supporting Actor
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Master
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Brazil
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Master" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Supporting Actor" .   } UNION { ?e <pred:name> "Brazil" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brazil