Question: Which movie is longer, Greenwich Village (the one that has Don Ameche as a cast member) or The Quiet American (the one that origins from Germany)?
Choices:
Curse of the Golden Flower
Rebecca
The Fifth Element
Pleasantville
The Towering Inferno
Training Day
A Prairie Home Companion
Greenwich Village
The Quiet American
Talk to Her
Program:
function: Find
inputs: Don Ameche
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Greenwich Village
function: And
dependencies: 1
2
function: Find
inputs: Germany
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: The Quiet American
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greenwich Village" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Don Ameche" .   } UNION { ?e <pred:name> "The Quiet American" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "Germany" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Quiet American