Question: Which movie is shorter, Never Let Me Go (the one whose genre is film based on literature) or The Thin Red Line (the one whose original language is Japanese)?
Choices:
Talk to Her
The Fifth Element
Rebecca
Training Day
The Hunchback of Notre Dame
The Towering Inferno
Pleasantville
Never Let Me Go
Curse of the Golden Flower
A Prairie Home Companion
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Never Let Me Go
function: And
dependencies: 1
2
function: Find
inputs: Japanese
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: The Thin Red Line
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Never Let Me Go" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "The Thin Red Line" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "Japanese" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Never Let Me Go