Question: Which is shorter, The Shipping News produced by Miramax or Invincible starring Tim Roth?
Choices:
Pleasantville
Curse of the Golden Flower
The Fifth Element
The Hunchback of Notre Dame
Training Day
Invincible
The Towering Inferno
The Shipping News
Talk to Her
Rebecca
Program:
function: Find
inputs: Miramax
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Shipping News
function: And
dependencies: 1
2
function: Find
inputs: Tim Roth
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Invincible
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Shipping News" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Miramax" .   } UNION { ?e <pred:name> "Invincible" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Tim Roth" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Shipping News