Question: Which one is shorter, Franz Schubert (the one whose genre is biographical film) or Night at the Museum: Battle of the Smithsonian (the one whose genre is adventure film) ?
Choices: Training Day
Talk to Her
Night at the Museum: Battle of the Smithsonian
Rebecca
The Fifth Element
Pleasantville
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Franz Schubert
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Franz Schubert" . ?e <genre> ?e_1 . ?e_1 <pred:name> "biographical film" .   } UNION { ?e <pred:name> "Night at the Museum: Battle of the Smithsonian" . ?e <genre> ?e_2 . ?e_2 <pred:name> "adventure film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: biographical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Franz Schubert
function: And
dependencies: 1
2
function: Find
inputs: adventure film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Night at the Museum: Battle of the Smithsonian
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Night at the Museum: Battle of the Smithsonian