Question: What is shorter in duration, Man on the Moon or Anastasia (which was published on 1998-04-02)?
Choices:
A Christmas Carol
Anastasia
Ponyo on the Cliff by the Sea
The Polar Express
Magic Knight Rayearth
Naruto Shippuden the Movie: Bonds
My-HiME
Man on the Moon
Superman
Wonder Woman
Program:
function: Find
inputs: Man on the Moon
function: Find
inputs: Anastasia
function: FilterDate
dependencies: 1
inputs: publication date
1998-04-02
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Man on the Moon" . } UNION { ?e <pred:name> "Anastasia" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1998-04-02"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anastasia