Question: Which has a shorter duration, 21 Grams or The Firm (which was published 2009-01-01)?
Choices:
Training Day
21 Grams
Rebecca
Pleasantville
The Towering Inferno
The Fifth Element
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
The Firm
Program:
function: Find
inputs: 21 Grams
function: Find
inputs: The Firm
function: FilterDate
dependencies: 1
inputs: publication date
2009-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "21 Grams" . } UNION { ?e <pred:name> "The Firm" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Firm