Question: Which one, Henry V (the one whose publication date is 1989-01-01) or Tomorrow Never Dies (the one that has Jonathan Pryce as a cast member), has greater duration?
Choices: Tomorrow Never Dies
The Towering Inferno
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
Henry V
Talk to Her
The Fifth Element
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Henry V" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1989-01-01"^^xsd:date . } UNION { ?e <pred:name> "Tomorrow Never Dies" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jonathan Pryce" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Henry V
function: FilterDate
dependencies: 0
inputs: publication date
1989-01-01
=
function: Find
inputs: Jonathan Pryce
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Tomorrow Never Dies
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: Henry V