Question: Which is longer, W. or Bedazzled published on 1967-01-01?
Choices:
The Hunchback of Notre Dame
W.
The Towering Inferno
Training Day
Bedazzled
A Prairie Home Companion
Rebecca
Pleasantville
Talk to Her
The Fifth Element
Program:
function: Find
inputs: W.
function: Find
inputs: Bedazzled
function: FilterDate
dependencies: 1
inputs: publication date
1967-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "W." . } UNION { ?e <pred:name> "Bedazzled" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1967-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: W.