Question: Which is shorter, The Bodyguard published January 1, 1944 or Midnight Express?
Choices:
A Christmas Carol
Ponyo on the Cliff by the Sea
The Polar Express
Anastasia
Midnight Express
Wonder Woman
Superman
Magic Knight Rayearth
The Bodyguard
My-HiME
Program:
function: Find
inputs: The Bodyguard
function: FilterDate
dependencies: 0
inputs: publication date
1944-01-01
=
function: Find
inputs: Midnight Express
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Bodyguard" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1944-01-01"^^xsd:date . } UNION { ?e <pred:name> "Midnight Express" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Bodyguard