Question: Which movie is shorter, Ithaca (the one that has Tom Hanks as a cast member) or Cinderella (the one that has David Warner as a cast member)?
Choices:
Cinderella
Training Day
Rebecca
Ithaca
Pleasantville
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Talk to Her
A Prairie Home Companion
Answer: Ithaca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ithaca" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tom Hanks" .   } UNION { ?e <pred:name> "Cinderella" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "David Warner" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Tom Hanks
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Ithaca
function: And
dependencies: 1
2
function: Find
inputs: David Warner
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Cinderella
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less