Question: Is the run-time shorter for Julius Caesar, with Deborah Kerr as a cast member, or Emma, distributed by Metro-Goldwyn-Mayer?
Choices:
A Prairie Home Companion
The Fifth Element
Rebecca
Curse of the Golden Flower
Emma
Training Day
Pleasantville
Julius Caesar
The Hunchback of Notre Dame
The Towering Inferno
Program:
function: Find
inputs: Deborah Kerr
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Julius Caesar
function: And
dependencies: 1
2
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Emma
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Julius Caesar" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Deborah Kerr" .   } UNION { ?e <pred:name> "Emma" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Metro-Goldwyn-Mayer" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Emma