Question: Which movie is longer, Rush Hour (the one that has Philip Baker Hall as a cast member) or Casino Royale (the one whose composer is Jerry Goldsmith)?
Choices:
Curse of the Golden Flower
Rush Hour
Talk to Her
The Hunchback of Notre Dame
Training Day
Rebecca
The Fifth Element
The Towering Inferno
Pleasantville
Casino Royale
Answer: Rush Hour
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rush Hour" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Philip Baker Hall" .   } UNION { ?e <pred:name> "Casino Royale" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Jerry Goldsmith" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Philip Baker Hall
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Rush Hour
function: And
dependencies: 1
2
function: Find
inputs: Jerry Goldsmith
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Casino Royale
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater