Question: Which movie is shorter, American Gangster (the one whose director is Ridley Scott) or Elizabeth: The Golden Age?
Choices: The Hunchback of Notre Dame
Elizabeth: The Golden Age
Talk to Her
American Gangster
The Fifth Element
Training Day
Curse of the Golden Flower
Pleasantville
The Towering Inferno
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "American Gangster" . ?e <director> ?e_1 . ?e_1 <pred:name> "Ridley Scott" .   } UNION { ?e <pred:name> "Elizabeth: The Golden Age" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Ridley Scott
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: American Gangster
function: And
dependencies: 1
2
function: Find
inputs: Elizabeth: The Golden Age
function: SelectBetween
dependencies: 3
4
inputs: duration
less
Answer: Elizabeth: The Golden Age