Question: Which movie is longer, From Hell or Tomorrow Never Dies (the one whose publication date is 1997-12-19)?
Choices:
Tomorrow Never Dies
Pleasantville
From Hell
Talk to Her
Training Day
The Hunchback of Notre Dame
Rebecca
A Prairie Home Companion
The Fifth Element
Curse of the Golden Flower
Program:
function: Find
inputs: From Hell
function: Find
inputs: Tomorrow Never Dies
function: FilterDate
dependencies: 1
inputs: publication date
1997-12-19
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "From Hell" . } UNION { ?e <pred:name> "Tomorrow Never Dies" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1997-12-19"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: From Hell