Question: Which movie is longer, Antarctica (the one whose publication date is 1983-01-01) or Great Expectations (the one whose narrative location is New York City)?
Choices: Talk to Her
Rebecca
Curse of the Golden Flower
The Fifth Element
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
Antarctica
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Antarctica" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1983-01-01"^^xsd:date . } UNION { ?e <pred:name> "Great Expectations" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Antarctica
function: FilterDate
dependencies: 0
inputs: publication date
1983-01-01
=
function: Find
inputs: New York City
function: Relate
dependencies: 2
inputs: narrative location
backward
function: Find
inputs: Great Expectations
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: Antarctica