Question: Between Emma, published 1997-04-10, and Days of Heaven, which one is shorter?
Choices:
Days of Heaven
Emma
Talk to Her
The Fifth Element
Training Day
Pleasantville
Curse of the Golden Flower
The Towering Inferno
A Prairie Home Companion
The Hunchback of Notre Dame
Answer: Days of Heaven
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Days of Heaven" . } UNION { ?e <pred:name> "Emma" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1997-04-10"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Days of Heaven
function: Find
inputs: Emma
function: FilterDate
dependencies: 1
inputs: publication date
1997-04-10
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less