Question: Which movie is longer, Recount or The Grapes of Wrath (the one that was nominated for Academy Award for Best Director)?
Choices:
The Grapes of Wrath
Pleasantville
A Prairie Home Companion
Rebecca
The Towering Inferno
The Hunchback of Notre Dame
Recount
Training Day
Talk to Her
The Fifth Element
Program:
function: Find
inputs: Recount
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: The Grapes of Wrath
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Recount" .  } UNION { ?e <pred:name> "The Grapes of Wrath" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Grapes of Wrath