Question: Which movie is shorter, In the Heat of the Night (the one whose director of photography is Haskell Wexler) or Talk to Me (the one that has Mike Epps as a cast member)?
Choices:
Talk to Me
Rebecca
A Prairie Home Companion
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
Curse of the Golden Flower
Training Day
In the Heat of the Night
Talk to Her
Answer: In the Heat of the Night
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "In the Heat of the Night" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Haskell Wexler" .   } UNION { ?e <pred:name> "Talk to Me" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Mike Epps" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Haskell Wexler
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: In the Heat of the Night
function: And
dependencies: 1
2
function: Find
inputs: Mike Epps
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Talk to Me
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less