Question: Is The Specialist (produced by Jerry Weintraub) or Robin Hood (released 1912-01-01) longer in duration?
Choices:
The Fifth Element
Talk to Her
The Hunchback of Notre Dame
Pleasantville
Training Day
The Specialist
The Towering Inferno
Rebecca
Robin Hood
Curse of the Golden Flower
Program:
function: Find
inputs: Jerry Weintraub
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Specialist
function: And
dependencies: 1
2
function: Find
inputs: Robin Hood
function: FilterDate
dependencies: 4
inputs: publication date
1912-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Specialist" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Jerry Weintraub" . } UNION { ?e <pred:name> "Robin Hood" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1912-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Specialist