Question: Which film is shorter, Casino Royale (the one whose publication date is 1954-01-01) or The Great Gatsby (the one whose director of photography is Douglas Slocombe)?
Choices:
The Three Musketeers
The Challenge
Shackleton
The Music Man
The Great Gatsby
The Goodbye Girl
The Late Shift
Casino Royale
A Streetcar Named Desire
A Christmas Carol
Program:
function: Find
inputs: Casino Royale
function: FilterDate
dependencies: 0
inputs: publication date
1954-01-01
=
function: Find
inputs: Douglas Slocombe
function: Relate
dependencies: 2
inputs: director of photography
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casino Royale" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1954-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Great Gatsby" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Douglas Slocombe" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Casino Royale