Question: Which movie is longer, Fair Game (the one whose distributor is Warner Bros.) or The Towering Inferno?
Choices:
Rope
The Towering Inferno
Rebecca
Fair Game
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
The Fifth Element
Training Day
Talk to Her
Program:
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Fair Game
function: And
dependencies: 1
2
function: Find
inputs: The Towering Inferno
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fair Game" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Warner Bros." .   } UNION { ?e <pred:name> "The Towering Inferno" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Towering Inferno