Question: Which is longer: The Time Machine, published on 1960-01-01, or United Artists-distributed The Three Musketeers?
Choices:
The Fifth Element
Rebecca
The Time Machine
Pleasantville
The Three Musketeers
Talk to Her
Curse of the Golden Flower
The Hunchback of Notre Dame
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: The Time Machine
function: FilterDate
dependencies: 0
inputs: publication date
1960-01-01
=
function: Find
inputs: United Artists
function: Relate
dependencies: 2
inputs: distributor
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Time Machine" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1960-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Three Musketeers" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "United Artists" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Three Musketeers