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