Question: Which movie is shorter, To Kill a Mockingbird (the one that was nominated for Academy Award for Best Actor) or Sabrina (the one whose director of photography is Charles Lang)?
Choices:
The Hunchback of Notre Dame
The Towering Inferno
Pleasantville
Talk to Her
Sabrina
The Fifth Element
Training Day
A Prairie Home Companion
To Kill a Mockingbird
Curse of the Golden Flower
Program:
function: Find
inputs: Academy Award for Best Actor
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: To Kill a Mockingbird
function: And
dependencies: 1
2
function: Find
inputs: Charles Lang
function: Relate
dependencies: 4
inputs: director of photography
backward
function: Find
inputs: Sabrina
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "To Kill a Mockingbird" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actor" .   } UNION { ?e <pred:name> "Sabrina" . ?e <director_of_photography> ?e_2 . ?e_2 <pred:name> "Charles Lang" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sabrina