Question: Which movie is shorter, The Scarlet Letter (the one whose publication date is 1926-01-01) or Bones (the one whose genre is blaxploitation)?
Choices:
The Hunchback of Notre Dame
The Scarlet Letter
A Prairie Home Companion
Talk to Her
The Towering Inferno
Pleasantville
Rebecca
Bones
Curse of the Golden Flower
Training Day
Program:
function: Find
inputs: The Scarlet Letter
function: FilterDate
dependencies: 0
inputs: publication date
1926-01-01
=
function: Find
inputs: blaxploitation
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Bones
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Scarlet Letter" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1926-01-01"^^xsd:date . } UNION { ?e <pred:name> "Bones" . ?e <genre> ?e_1 . ?e_1 <pred:name> "blaxploitation" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bones