Question: Which movie is longer, The Pride of the Yankees or Hulk (the one that is a notable work of James Schamus)?
Choices:
Talk to Her
Pleasantville
Hulk
Training Day
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Curse of the Golden Flower
The Pride of the Yankees
A Prairie Home Companion
Answer: Hulk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Pride of the Yankees" .  } UNION { ?e <pred:name> "Hulk" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "James Schamus" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Pride of the Yankees
function: Find
inputs: James Schamus
function: Relate
dependencies: 1
inputs: notable work
forward
function: Find
inputs: Hulk
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater