Question: Which one, Honolulu (the one whose distributor is Metro-Goldwyn-Mayer) or The Towering Inferno, has greater duration?
Choices:
Talk to Her
Honolulu
Pleasantville
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
Rope
Rebecca
Curse of the Golden Flower
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Honolulu
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> "Honolulu" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "The Towering Inferno" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Towering Inferno