Question: Which movie is longer, The Devil Wears Prada (the one that was nominated for MTV Movie Award for Best Comedic Performance) or Being John Malkovich?
Choices: Training Day
Curse of the Golden Flower
Rebecca
The Fifth Element
The Towering Inferno
Talk to Her
The Devil Wears Prada
A Prairie Home Companion
Pleasantville
Being John Malkovich
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Devil Wears Prada" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "MTV Movie Award for Best Comedic Performance" .   } UNION { ?e <pred:name> "Being John Malkovich" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: MTV Movie Award for Best Comedic Performance
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Devil Wears Prada
function: And
dependencies: 1
2
function: Find
inputs: Being John Malkovich
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: The Devil Wears Prada