Question: Which movie is longer, Crash (the one that was nominated for Golden Reel Award) or The Edge (the one whose composer is Jerry Goldsmith)?
Choices:
The Towering Inferno
The Hunchback of Notre Dame
Rebecca
Pleasantville
The Edge
Curse of the Golden Flower
Talk to Her
Crash
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: Golden Reel Award
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Crash
function: And
dependencies: 1
2
function: Find
inputs: Jerry Goldsmith
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: The Edge
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Crash" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Reel Award" .   } UNION { ?e <pred:name> "The Edge" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Jerry Goldsmith" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Edge