Question: Which movie is shorter, the drama film Paterson or The Stepford Wives (produced by Scott Rudin)?
Choices:
Pleasantville
The Stepford Wives
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Training Day
Paterson
Talk to Her
Program:
function: Find
inputs: Scott Rudin
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Stepford Wives
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Paterson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Stepford Wives" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Scott Rudin" .   } UNION { ?e <pred:name> "Paterson" . ?e <genre> ?e_2 . ?e_2 <pred:name> "drama film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Stepford Wives