Question: Which movie is longer, The Cardinal (the one whose release region is Spain) or Get Carter (the one whose distributor is Metro-Goldwyn-Mayer)?
Choices:
Rebecca
The Fifth Element
A Prairie Home Companion
Curse of the Golden Flower
Training Day
Talk to Her
The Towering Inferno
Pleasantville
Get Carter
The Cardinal
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Cardinal
function: And
dependencies: 1
2
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Get Carter
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Cardinal" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Spain" .   } UNION { ?e <pred:name> "Get Carter" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Metro-Goldwyn-Mayer" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Cardinal