Question: Which one, The Rainmaker (the one that has Danny DeVito as a cast member) or Wuthering Heights (the one that was nominated for Academy Award for Best Writing, Adapted Screenplay), has less duration?
Choices:
The Towering Inferno
Wuthering Heights
Training Day
The Rainmaker
Curse of the Golden Flower
The Fifth Element
A Prairie Home Companion
Talk to Her
Rebecca
The Hunchback of Notre Dame
Program:
function: Find
inputs: Danny DeVito
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Rainmaker
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Wuthering Heights
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Rainmaker" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Danny DeVito" .   } UNION { ?e <pred:name> "Wuthering Heights" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Wuthering Heights