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