Question: Which movie is longer, End of Days or The Notebook (the one whose producer is Toby Emmerich)?
Choices: The Notebook
Talk to Her
Rebecca
Curse of the Golden Flower
The Hunchback of Notre Dame
End of Days
Pleasantville
Training Day
The Fifth Element
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "End of Days" .  } UNION { ?e <pred:name> "The Notebook" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Toby Emmerich" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: End of Days
function: Find
inputs: Toby Emmerich
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: The Notebook
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: The Notebook