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