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