Question: Which is longer, New Year's Eve published on 1924-01-01 or Julius Caesar directed by Joseph L. Mankiewicz?
Choices:
Talk to Her
Rebecca
The Towering Inferno
A Prairie Home Companion
New Year's Eve
The Hunchback of Notre Dame
Julius Caesar
Pleasantville
Training Day
The Fifth Element
Answer: Julius Caesar
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Year's Eve" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1924-01-01"^^xsd:date . } UNION { ?e <pred:name> "Julius Caesar" . ?e <director> ?e_1 . ?e_1 <pred:name> "Joseph L. Mankiewicz" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New Year's Eve
function: FilterDate
dependencies: 0
inputs: publication date
1924-01-01
=
function: Find
inputs: Joseph L. Mankiewicz
function: Relate
dependencies: 2
inputs: director
backward
function: Find
inputs: Julius Caesar
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater