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