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