Question: Which movie is longer, The Man Who Knew Too Much (the one whose publication date is 1956-01-01) or The Wizard of Oz (the one whose publication date is 1982-01-01)?
Choices:
Pleasantville
A Prairie Home Companion
Rebecca
Training Day
The Man Who Knew Too Much
The Hunchback of Notre Dame
The Wizard of Oz
The Fifth Element
The Towering Inferno
Talk to Her
Program:
function: Find
inputs: The Man Who Knew Too Much
function: FilterDate
dependencies: 0
inputs: publication date
1956-01-01
=
function: Find
inputs: The Wizard of Oz
function: FilterDate
dependencies: 2
inputs: publication date
1982-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Man Who Knew Too Much" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1956-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Wizard of Oz" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "1982-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Man Who Knew Too Much