Question: Is the shorter work Murder on the Orient Express, with John Gielgud as a cast member, or Il Divo?
Choices:
Training Day
Il Divo
Rebecca
Curse of the Golden Flower
Pleasantville
The Hunchback of Notre Dame
The Towering Inferno
Murder on the Orient Express
A Prairie Home Companion
Talk to Her
Program:
function: Find
inputs: John Gielgud
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Murder on the Orient Express
function: And
dependencies: 1
2
function: Find
inputs: Il Divo
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Murder on the Orient Express" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Gielgud" .   } UNION { ?e <pred:name> "Il Divo" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Il Divo