Question: Which movie is longer, X-Men Origins: Wolverine (the one whose original language is English) or The Island (the one whose publication date is 1980-01-01)?
Choices: The Island
X-Men Origins: Wolverine
The Towering Inferno
The Hunchback of Notre Dame
Talk to Her
Rebecca
The Fifth Element
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "X-Men Origins: Wolverine" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "The Island" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1980-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: X-Men Origins: Wolverine
function: And
dependencies: 1
2
function: Find
inputs: The Island
function: FilterDate
dependencies: 4
inputs: publication date
1980-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: The Island