Question: Which movie is shorter, Flash Gordon (the one that has Max von Sydow as a cast member) or The Merry Widow (the one whose original language is German)?
Choices:
Pleasantville
The Towering Inferno
The Fifth Element
A Prairie Home Companion
The Hunchback of Notre Dame
Training Day
Flash Gordon
Talk to Her
The Merry Widow
Rebecca
Answer: The Merry Widow
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Flash Gordon" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Max von Sydow" .   } UNION { ?e <pred:name> "The Merry Widow" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "German" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Max von Sydow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Flash Gordon
function: And
dependencies: 1
2
function: Find
inputs: German
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: The Merry Widow
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less