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