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