Question: Which movie is shorter, Christopher Columbus (the one whose genre is drama film) or The Man in the Iron Mask (the one whose director of photography is Freddie Young)?
Choices: A Prairie Home Companion
Christopher Columbus
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Talk to Her
The Towering Inferno
Rebecca
The Man in the Iron Mask
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Christopher Columbus" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "The Man in the Iron Mask" . ?e <director_of_photography> ?e_2 . ?e_2 <pred:name> "Freddie Young" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Christopher Columbus
function: And
dependencies: 1
2
function: Find
inputs: Freddie Young
function: Relate
dependencies: 4
inputs: director of photography
backward
function: Find
inputs: The Man in the Iron Mask
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Christopher Columbus