Question: Tell me between Ninotchka and Africa that was published in 1999-01-01 which has a smaller duration
Choices:
Training Day
Pleasantville
Talk to Her
A Prairie Home Companion
Ninotchka
Rebecca
The Fifth Element
Africa
The Hunchback of Notre Dame
The Towering Inferno
Program:
function: Find
inputs: Ninotchka
function: Find
inputs: Africa
function: FilterDate
dependencies: 1
inputs: publication date
1999-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ninotchka" . } UNION { ?e <pred:name> "Africa" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1999-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Africa