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