Question: Which is longer, An American in Paris or Hamlet, originally in Russian?
Choices:
Talk to Her
The Fifth Element
Rebecca
An American in Paris
Hamlet
A Prairie Home Companion
Training Day
The Towering Inferno
The Hunchback of Notre Dame
Curse of the Golden Flower
Program:
function: Find
inputs: An American in Paris
function: Find
inputs: Russian
function: Relate
dependencies: 1
inputs: original language of film or TV show
backward
function: Find
inputs: Hamlet
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "An American in Paris" .  } UNION { ?e <pred:name> "Hamlet" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "Russian" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hamlet