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