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