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