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