Question: Which movie is shorter, A Great Day in Harlem (the one whose genre is documentary film) or K-19: The Widowmaker?
Choices:
K-19: The Widowmaker
Talk to Her
A Great Day in Harlem
The Fifth Element
Training Day
The Hunchback of Notre Dame
Curse of the Golden Flower
The Towering Inferno
Rebecca
Pleasantville
Program:
function: Find
inputs: documentary film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: A Great Day in Harlem
function: And
dependencies: 1
2
function: Find
inputs: K-19: The Widowmaker
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Great Day in Harlem" . ?e <genre> ?e_1 . ?e_1 <pred:name> "documentary film" .   } UNION { ?e <pred:name> "K-19: The Widowmaker" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: A Great Day in Harlem