Question: Which movie cost more, Die Another Day (the one whose production company is Metro-Goldwyn-Mayer) or The Brothers Bloom?
Choices:
A Prairie Home Companion
The Brothers Bloom
The Towering Inferno
Die Another Day
Rebecca
Pleasantville
Talk to Her
The Hunchback of Notre Dame
The Fifth Element
Training Day
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Die Another Day
function: And
dependencies: 1
2
function: Find
inputs: The Brothers Bloom
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Die Another Day" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "The Brothers Bloom" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Die Another Day