Question: Which film has the longer running time,  Anna Karenina (produced by the Metro-Goldwyn-Mayer company) or 3:10 to Yuma (nominated for an Academy Award for Best Original Score)?
Choices:
Anna Karenina
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Training Day
The Fifth Element
The Towering Inferno
The Hunchback of Notre Dame
3:10 to Yuma
Answer: 3:10 to Yuma
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anna Karenina" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "3:10 to Yuma" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Original Score" .  } ?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: Anna Karenina
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: 3:10 to Yuma
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater