Question: Which one, The Portrait of a Lady (the one that has Richard E. Grant as a cast member) or The Hunchback of Notre Dame (the one whose distributor is RKO Pictures), has shorter length?
Choices:
The Towering Inferno
Rebecca
Training Day
Rope
Talk to Her
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
The Fifth Element
The Portrait of a Lady
Answer: The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Portrait of a Lady" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard E. Grant" .   } UNION { ?e <pred:name> "The Hunchback of Notre Dame" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "RKO Pictures" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Richard E. Grant
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Portrait of a Lady
function: And
dependencies: 1
2
function: Find
inputs: RKO Pictures
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: The Hunchback of Notre Dame
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less