Question: Which movie is longer, Sun (the one whose publication date is 1929-01-01) or Alice in Wonderland (the one whose script is wrote by Lewis Carroll)?
Choices:
Training Day
The Hunchback of Notre Dame
Alice in Wonderland
Curse of the Golden Flower
The Towering Inferno
Rebecca
A Prairie Home Companion
Pleasantville
Sun
Talk to Her
Program:
function: Find
inputs: Sun
function: FilterDate
dependencies: 0
inputs: publication date
1929-01-01
=
function: Find
inputs: Lewis Carroll
function: Relate
dependencies: 2
inputs: screenwriter
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sun" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1929-01-01"^^xsd:date . } UNION { ?e <pred:name> "Alice in Wonderland" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Lewis Carroll" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sun