Question: Which one is longer, Rabindranath Tagore (the one whose script is wrote by Satyajit Ray) or Legend (the one whose director is Ridley Scott) ?
Choices: Curse of the Golden Flower
The Fifth Element
A Prairie Home Companion
Training Day
Rebecca
Pleasantville
The Hunchback of Notre Dame
Legend
Rabindranath Tagore
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rabindranath Tagore" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Satyajit Ray" .   } UNION { ?e <pred:name> "Legend" . ?e <director> ?e_2 . ?e_2 <pred:name> "Ridley Scott" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Satyajit Ray
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Rabindranath Tagore
function: And
dependencies: 1
2
function: Find
inputs: Ridley Scott
function: Relate
dependencies: 4
inputs: director
backward
function: Find
inputs: Legend
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Legend