Question: Which one, Happy Days (the one whose publication date is 1929-01-01) or Harry Potter and the Chamber of Secrets (the one whose official website is http://www.harrypotter.com), has less duration?
Choices:
Talk to Her
The Fifth Element
Happy Days
The Hunchback of Notre Dame
Training Day
Rebecca
Curse of the Golden Flower
Harry Potter and the Chamber of Secrets
Pleasantville
The Towering Inferno
Program:
function: Find
inputs: Happy Days
function: FilterDate
dependencies: 0
inputs: publication date
1929-01-01
=
function: Find
inputs: Harry Potter and the Chamber of Secrets
function: FilterStr
dependencies: 2
inputs: official website
http://www.harrypotter.com
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Happy Days" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1929-01-01"^^xsd:date . } UNION { ?e <pred:name> "Harry Potter and the Chamber of Secrets" . ?e <official_website> ?pv_2 . ?pv_2 <pred:value> "http://www.harrypotter.com" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Happy Days