Question: Which has a lesser duration, Jerry Maguire or Heroes (whose publication date is 1977-01-01)?
Choices:
Jerry Maguire
Talk to Her
Training Day
Curse of the Golden Flower
Heroes
A Prairie Home Companion
The Fifth Element
The Hunchback of Notre Dame
Rebecca
Pleasantville
Program:
function: Find
inputs: Jerry Maguire
function: Find
inputs: Heroes
function: FilterDate
dependencies: 1
inputs: publication date
1977-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jerry Maguire" . } UNION { ?e <pred:name> "Heroes" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1977-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Heroes