Question: Which one, The Man in the Iron Mask (the one whose production company is Metro-Goldwyn-Mayer) or The Goonies (the one whose release region is South Korea), has greater duration?
Choices: The Towering Inferno
The Fifth Element
The Hunchback of Notre Dame
Training Day
Talk to Her
Curse of the Golden Flower
Pleasantville
The Goonies
The Man in the Iron Mask
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Man in the Iron Mask" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "The Goonies" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "South Korea" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Man in the Iron Mask
function: And
dependencies: 1
2
function: Find
inputs: South Korea
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: The Goonies
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Man in the Iron Mask