Question: Which movie is longer, Clash of the Titans (the one that has Richard D. Zanuck as an executive producer) or The Last Emperor (the one that has Cary-Hiroyuki Tagawa as a cast member)?
Choices: Pleasantville
Talk to Her
The Towering Inferno
Rebecca
Clash of the Titans
The Hunchback of Notre Dame
Curse of the Golden Flower
The Last Emperor
Training Day
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Clash of the Titans" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "Richard D. Zanuck" .   } UNION { ?e <pred:name> "The Last Emperor" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Cary-Hiroyuki Tagawa" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Richard D. Zanuck
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: Clash of the Titans
function: And
dependencies: 1
2
function: Find
inputs: Cary-Hiroyuki Tagawa
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Last Emperor
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Last Emperor