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