Question: Which film has the longer runtime, Face/Off or Little Women (whose production company is Metro-Goldwyn-Mayer)?
Choices: A Prairie Home Companion
The Hunchback of Notre Dame
Face/Off
Talk to Her
Curse of the Golden Flower
Training Day
Pleasantville
The Fifth Element
Little Women
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Face/Off" .  } 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
Program:
function: Find
inputs: Face/Off
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
Answer: Face/Off