Question: Which movie is shorter, Labyrinth (the one whose color is black-and-white) or New York (the one whose production company is Yash Raj Films)?
Choices:
Labyrinth
The Fifth Element
New York
Curse of the Golden Flower
Rebecca
Pleasantville
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Training Day
Answer: Labyrinth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Labyrinth" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .   } UNION { ?e <pred:name> "New York" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Yash Raj Films" .  } ?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: Labyrinth
function: And
dependencies: 1
2
function: Find
inputs: Yash Raj Films
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: New York
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less