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