Question: Which movie is longer, Apocalypto or Nebraska (the one that was nominated for Academy Award for Best Director)?
Choices:
Pleasantville
A Prairie Home Companion
Training Day
Talk to Her
Nebraska
Curse of the Golden Flower
Apocalypto
The Hunchback of Notre Dame
The Fifth Element
Rebecca
Answer: Apocalypto
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Apocalypto" .  } UNION { ?e <pred:name> "Nebraska" . ?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
Program:
function: Find
inputs: Apocalypto
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Nebraska
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater