Question: Which movie is longer, Wichita (the one whose original language is English) or The Fifth Element (the one whose publication date is 1997-08-22)?
Choices:
Talk to Her
Pleasantville
The Fifth Element
Training Day
The Towering Inferno
Wichita
Rope
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Answer: The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wichita" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "The Fifth Element" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1997-08-22"^^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: Wichita
function: And
dependencies: 1
2
function: Find
inputs: The Fifth Element
function: FilterDate
dependencies: 4
inputs: publication date
1997-08-22
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater