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