Question: Which is shorter, The Sting (published 1973-01-01) or The Adventures of Priscilla, Queen of the Desert?
Choices:
The Fifth Element
The Sting
The Adventures of Priscilla, Queen of the Desert
Talk to Her
The Towering Inferno
The Hunchback of Notre Dame
Curse of the Golden Flower
Training Day
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: The Sting
function: FilterDate
dependencies: 0
inputs: publication date
1973-01-01
=
function: Find
inputs: The Adventures of Priscilla, Queen of the Desert
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Sting" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1973-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Adventures of Priscilla, Queen of the Desert" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Adventures of Priscilla, Queen of the Desert