Question: Which movie is shorter, Oscar Wilde (the one whose publication date is 1960-01-01) or Atonement (the one that was nominated for Golden Globe Award for Best Original Score)?
Choices:
Atonement
The Fifth Element
Pleasantville
Talk to Her
The Hunchback of Notre Dame
Oscar Wilde
Rebecca
The Towering Inferno
Curse of the Golden Flower
Training Day
Answer: Oscar Wilde
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oscar Wilde" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1960-01-01"^^xsd:date . } UNION { ?e <pred:name> "Atonement" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Globe Award for Best Original Score" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Oscar Wilde
function: FilterDate
dependencies: 0
inputs: publication date
1960-01-01
=
function: Find
inputs: Golden Globe Award for Best Original Score
function: Relate
dependencies: 2
inputs: nominated for
backward
function: Find
inputs: Atonement
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less