Question: Does The Scarlet Letter (whose production company is Metro-Goldwyn-Mayer) or The Diary of Anne Frank (that was nominated for an Academy Award for Best Supporting Actor) have the longer runtime?
Choices: The Diary of Anne Frank
Pleasantville
Rebecca
The Hunchback of Notre Dame
The Scarlet Letter
Curse of the Golden Flower
The Fifth Element
Talk to Her
Training Day
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Scarlet Letter" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "The Diary of Anne Frank" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actor" .  } ?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 Scarlet Letter
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actor
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: The Diary of Anne Frank
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Diary of Anne Frank