Question: Which movie is longer, There Will Be Blood or The Lord of the Rings: The Return of the King (the one that received Academy Award for Best Writing, Adapted Screenplay)?
Choices:
The Hunchback of Notre Dame
The Lord of the Rings: The Return of the King
The Towering Inferno
Pleasantville
Training Day
Talk to Her
The Fifth Element
Rebecca
There Will Be Blood
Curse of the Golden Flower
Program:
function: Find
inputs: There Will Be Blood
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: Relate
dependencies: 1
inputs: award received
backward
function: Find
inputs: The Lord of the Rings: The Return of the King
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "There Will Be Blood" .  } UNION { ?e <pred:name> "The Lord of the Rings: The Return of the King" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Lord of the Rings: The Return of the King