Question: Which movie is longer, The Witches of Eastwick (the one that was nominated for Academy Award for Best Original Score) or Chocolat (the one whose publication date is 2017-04-20)?
Choices:
Talk to Her
The Fifth Element
Training Day
Pleasantville
The Towering Inferno
Chocolat
The Witches of Eastwick
Curse of the Golden Flower
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Witches of Eastwick
function: And
dependencies: 1
2
function: Find
inputs: Chocolat
function: FilterDate
dependencies: 4
inputs: publication date
2017-04-20
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Witches of Eastwick" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Original Score" . } UNION { ?e <pred:name> "Chocolat" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2017-04-20"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Witches of Eastwick