Question: Which movie is longer, Red Dragon (the one that has Ralph Fiennes as a cast member) or G.I. Joe: Retaliation?
Choices:
Training Day
The Towering Inferno
Talk to Her
G.I. Joe: Retaliation
The Hunchback of Notre Dame
The Fifth Element
Rebecca
Red Dragon
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: Ralph Fiennes
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Red Dragon
function: And
dependencies: 1
2
function: Find
inputs: G.I. Joe: Retaliation
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Red Dragon" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ralph Fiennes" .   } UNION { ?e <pred:name> "G.I. Joe: Retaliation" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: G.I. Joe: Retaliation