Question: Which movie is shorter, Hamlet (the one that has Peter Cushing as a cast member) or Rush (the one whose production company is Working Title Films)?
Choices:
A Prairie Home Companion
Hamlet
Training Day
Rebecca
The Fifth Element
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
The Towering Inferno
Rush
Answer: Rush
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Peter Cushing" .   } UNION { ?e <pred:name> "Rush" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Working Title Films" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Peter Cushing
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: Working Title Films
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Rush
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less