Question: Which movie is shorter, Independence Day (the one whose publication date is 1983-01-01) or Julius Caesar (the one whose script is wrote by Joseph L. Mankiewicz)?
Choices:
A Prairie Home Companion
Talk to Her
Pleasantville
Training Day
The Towering Inferno
Rebecca
Independence Day
The Fifth Element
The Hunchback of Notre Dame
Julius Caesar
Program:
function: Find
inputs: Independence Day
function: FilterDate
dependencies: 0
inputs: publication date
1983-01-01
=
function: Find
inputs: Joseph L. Mankiewicz
function: Relate
dependencies: 2
inputs: screenwriter
backward
function: Find
inputs: Julius Caesar
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Independence Day" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1983-01-01"^^xsd:date . } UNION { ?e <pred:name> "Julius Caesar" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Joseph L. Mankiewicz" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Independence Day