Question: Which is shorter, Rang De Basanti or Rabindranath Tagore (screenplay by Satyajit Ray)?
Choices:
The Towering Inferno
Training Day
Curse of the Golden Flower
Rabindranath Tagore
A Prairie Home Companion
Rebecca
The Hunchback of Notre Dame
Pleasantville
Talk to Her
The Fifth Element
Program:
function: Find
inputs: Rang De Basanti
function: Find
inputs: Satyajit Ray
function: Relate
dependencies: 1
inputs: screenwriter
backward
function: Find
inputs: Rabindranath Tagore
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rang De Basanti" .  } UNION { ?e <pred:name> "Rabindranath Tagore" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Satyajit Ray" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rabindranath Tagore