Question: Which movie is shorter, Brighton Rock (the one whose color is black-and-white) or The Longest Yard (the one whose director of photography is Joseph F. Biroc)?
Choices:
Curse of the Golden Flower
Talk to Her
A Prairie Home Companion
The Fifth Element
Brighton Rock
Rebecca
The Hunchback of Notre Dame
Training Day
Pleasantville
The Longest Yard
Answer: Brighton Rock
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brighton Rock" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .   } UNION { ?e <pred:name> "The Longest Yard" . ?e <director_of_photography> ?e_2 . ?e_2 <pred:name> "Joseph F. Biroc" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: black-and-white
function: Relate
dependencies: 0
inputs: color
backward
function: Find
inputs: Brighton Rock
function: And
dependencies: 1
2
function: Find
inputs: Joseph F. Biroc
function: Relate
dependencies: 4
inputs: director of photography
backward
function: Find
inputs: The Longest Yard
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less