Question: Which movie is shorter, Sedona (the one whose publication date is 2012-01-01) or Batman (the one whose publication date is 1989-10-20)?
Choices:
The Towering Inferno
A Prairie Home Companion
The Fifth Element
Pleasantville
Rebecca
Sedona
Training Day
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: Sedona
function: FilterDate
dependencies: 0
inputs: publication date
2012-01-01
=
function: Find
inputs: Batman
function: FilterDate
dependencies: 2
inputs: publication date
1989-10-20
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sedona" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2012-01-01"^^xsd:date . } UNION { ?e <pred:name> "Batman" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "1989-10-20"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sedona