Question: Which movie is longer, The Specialist (the one whose publication date is 1999-11-11) or Samson and Delilah (the one whose duration is 95 minute)?
Choices:
Training Day
The Towering Inferno
A Prairie Home Companion
The Specialist
The Fifth Element
Samson and Delilah
Pleasantville
The Hunchback of Notre Dame
Rebecca
Talk to Her
Program:
function: Find
inputs: The Specialist
function: FilterDate
dependencies: 0
inputs: publication date
1999-11-11
=
function: Find
inputs: Samson and Delilah
function: FilterNum
dependencies: 2
inputs: duration
95 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Specialist" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1999-11-11"^^xsd:date . } UNION { ?e <pred:name> "Samson and Delilah" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "95"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Specialist