Question: Which movie is longer, The Fugitive (the one whose publication date is 1993-09-16) or Earth (the one that origins from Soviet Union)?
Choices:
Training Day
Curse of the Golden Flower
Pleasantville
The Fugitive
Earth
The Hunchback of Notre Dame
Rebecca
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: The Fugitive
function: FilterDate
dependencies: 0
inputs: publication date
1993-09-16
=
function: Find
inputs: Soviet Union
function: Relate
dependencies: 2
inputs: country of origin
backward
function: Find
inputs: Earth
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fugitive" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1993-09-16"^^xsd:date . } UNION { ?e <pred:name> "Earth" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Soviet Union" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Fugitive