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