Question: Which movie is longer, Ray (the one that was nominated for Academy Award for Best Sound Mixing) or Saw (the one whose regional debut venue is Cannes Film Festival)?
Choices:
Talk to Her
Pleasantville
Rebecca
Training Day
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
Ray
The Hunchback of Notre Dame
Program:
function: Find
inputs: Academy Award for Best Sound Mixing
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Ray
function: And
dependencies: 1
2
function: Find
inputs: Cannes Film Festival
function: Relate
dependencies: 4
inputs: film regional debut venue
backward
function: Find
inputs: Saw
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ray" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Sound Mixing" .   } UNION { ?e <pred:name> "Saw" . ?e <film_regional_debut_venue> ?e_2 . ?e_2 <pred:name> "Cannes Film Festival" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ray