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