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