Question: Which movie is longer, Freddy Got Fingered or The Wings of the Dove (the one whose distributor is Gaumont Film Company)?
Choices:
Talk to Her
The Fifth Element
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
Freddy Got Fingered
The Towering Inferno
Rebecca
The Wings of the Dove
Pleasantville
Program:
function: Find
inputs: Freddy Got Fingered
function: Find
inputs: Gaumont Film Company
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: The Wings of the Dove
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Freddy Got Fingered" .  } UNION { ?e <pred:name> "The Wings of the Dove" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Gaumont Film Company" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Wings of the Dove