Question: Which movie is longer, Men in Black (the one whose producer is Steven Spielberg) or Godzilla (the one whose producer is Tomoyuki Tanaka)?
Choices: The Hunchback of Notre Dame
The Fifth Element
Training Day
Curse of the Golden Flower
Rebecca
Godzilla
Talk to Her
Men in Black
The Towering Inferno
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Men in Black" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Steven Spielberg" .   } UNION { ?e <pred:name> "Godzilla" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Tomoyuki Tanaka" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Steven Spielberg
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Men in Black
function: And
dependencies: 1
2
function: Find
inputs: Tomoyuki Tanaka
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Godzilla
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Godzilla