Question: Which one is longer, The Sound of Music with an Ernest Lehman script, or Home Alone, published on 1990-11-10?
Choices:
Home Alone
The Hunchback of Notre Dame
Talk to Her
Training Day
The Fifth Element
A Prairie Home Companion
Pleasantville
Curse of the Golden Flower
Rebecca
The Sound of Music
Program:
function: Find
inputs: Ernest Lehman
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: The Sound of Music
function: And
dependencies: 1
2
function: Find
inputs: Home Alone
function: FilterDate
dependencies: 4
inputs: publication date
1990-11-10
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Sound of Music" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Ernest Lehman" . } UNION { ?e <pred:name> "Home Alone" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1990-11-10"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Sound of Music