Question: Does Caravaggio (that has Tilda Swinton as a cast member) or Where the Wild Things Are (whose production company is Warner Bros.) have the shorter runtime?
Choices:
Talk to Her
The Fifth Element
Caravaggio
Curse of the Golden Flower
Training Day
Pleasantville
The Hunchback of Notre Dame
Where the Wild Things Are
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: Tilda Swinton
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Caravaggio
function: And
dependencies: 1
2
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Where the Wild Things Are
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Caravaggio" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tilda Swinton" .   } UNION { ?e <pred:name> "Where the Wild Things Are" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Warner Bros." .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Caravaggio