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