Question: Which movie is shorter, The Sorcerer's Apprentice (the one whose publication date is 1955-01-01) or Fast Food Nation?
Choices:
A Christmas Carol
All Quiet on the Western Front
The Late Shift
The Sorcerer's Apprentice
The Three Musketeers
The Challenge
A Streetcar Named Desire
Fast Food Nation
The Music Man
Shackleton
Program:
function: Find
inputs: The Sorcerer's Apprentice
function: FilterDate
dependencies: 0
inputs: publication date
1955-01-01
=
function: Find
inputs: Fast Food Nation
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Sorcerer's Apprentice" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1955-01-01"^^xsd:date . } UNION { ?e <pred:name> "Fast Food Nation" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Sorcerer's Apprentice