Question: Which is shorter, Brideshead Revisited starring Greta Scacchi or A Christmas Carol starring Dominic West?
Choices:
The Three Musketeers
The Goodbye Girl
A Christmas Carol
A Streetcar Named Desire
All Quiet on the Western Front
Luther
Shackleton
The Music Man
The Challenge
The Late Shift
Program:
function: Find
inputs: Greta Scacchi
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Brideshead Revisited
function: And
dependencies: 1
2
function: Find
inputs: Dominic West
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: A Christmas Carol
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brideshead Revisited" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Greta Scacchi" .   } UNION { ?e <pred:name> "A Christmas Carol" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Dominic West" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: A Christmas Carol