Question: Which movie is shorter, Scoop (the one whose publication date is 2006-11-16) or The Cat in the Hat (the one that was nominated for Golden Raspberry Award for Worst Actor)?
Choices:
Pleasantville
The Hunchback of Notre Dame
The Cat in the Hat
Curse of the Golden Flower
The Towering Inferno
Rebecca
The Fifth Element
Talk to Her
Scoop
Training Day
Program:
function: Find
inputs: Scoop
function: FilterDate
dependencies: 0
inputs: publication date
2006-11-16
=
function: Find
inputs: Golden Raspberry Award for Worst Actor
function: Relate
dependencies: 2
inputs: nominated for
backward
function: Find
inputs: The Cat in the Hat
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scoop" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2006-11-16"^^xsd:date . } UNION { ?e <pred:name> "The Cat in the Hat" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Raspberry Award for Worst Actor" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Cat in the Hat