Question: Which was longer, Out of Africa (the one that received Academy Award for Best Director) or Glory, which was composed by James Horner?
Choices:
Talk to Her
A Prairie Home Companion
Glory
The Towering Inferno
Out of Africa
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
Training Day
Rebecca
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Out of Africa
function: And
dependencies: 1
2
function: Find
inputs: James Horner
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Glory
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Out of Africa" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } UNION { ?e <pred:name> "Glory" . ?e <composer> ?e_2 . ?e_2 <pred:name> "James Horner" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Out of Africa