Question: Which movie is shorter, Rogue (the one whose publication date is 2007-01-01) or Sweeney Todd: The Demon Barber of Fleet Street (the one that was nominated for Academy Award for Best Costume Design)?
Choices: Training Day
The Towering Inferno
Pleasantville
Talk to Her
The Hunchback of Notre Dame
Sweeney Todd: The Demon Barber of Fleet Street
Curse of the Golden Flower
The Fifth Element
Rogue
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rogue" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-01-01"^^xsd:date . } UNION { ?e <pred:name> "Sweeney Todd: The Demon Barber of Fleet Street" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Costume Design" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Rogue
function: FilterDate
dependencies: 0
inputs: publication date
2007-01-01
=
function: Find
inputs: Academy Award for Best Costume Design
function: Relate
dependencies: 2
inputs: nominated for
backward
function: Find
inputs: Sweeney Todd: The Demon Barber of Fleet Street
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: Rogue