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