Question: Which movie is longer, Little Women (the one whose production company is Metro-Goldwyn-Mayer) or Three Kings?
Choices: Three Kings
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Training Day
Pleasantville
Talk to Her
Little Women
Rebecca
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Little Women" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "Three Kings" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Little Women
function: And
dependencies: 1
2
function: Find
inputs: Three Kings
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: Little Women