Question: Which movie is longer, Dark Shadows (the one whose producer is Graham King) or Tarzan (the one whose distributor is Constantin Film)?
Choices:
Rebecca
Curse of the Golden Flower
Talk to Her
The Hunchback of Notre Dame
Training Day
Dark Shadows
The Towering Inferno
The Fifth Element
A Prairie Home Companion
Tarzan
Program:
function: Find
inputs: Graham King
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Dark Shadows
function: And
dependencies: 1
2
function: Find
inputs: Constantin Film
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Tarzan
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dark Shadows" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Graham King" .   } UNION { ?e <pred:name> "Tarzan" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Constantin Film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dark Shadows