Question: Which movie is shorter, Shortbus or Anna Karenina (the one that has Basil Rathbone as a cast member)?
Choices:
Rebecca
Pleasantville
Anna Karenina
Shortbus
A Prairie Home Companion
The Fifth Element
The Towering Inferno
The Hunchback of Notre Dame
Training Day
Curse of the Golden Flower
Answer: Anna Karenina
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shortbus" .  } UNION { ?e <pred:name> "Anna Karenina" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Basil Rathbone" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Shortbus
function: Find
inputs: Basil Rathbone
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less