Question: Which film has the longer running time, Stardust (released on 2007-09-01) or Gone with the Wind (whose producer is David O. Selznick)?
Choices: Training Day
A Prairie Home Companion
The Fifth Element
The Towering Inferno
Stardust
Rebecca
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
Gone with the Wind
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stardust" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-09-11"^^xsd:date . } UNION { ?e <pred:name> "Gone with the Wind" . ?e <producer> ?e_1 . ?e_1 <pred:name> "David O. Selznick" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Stardust
function: FilterDate
dependencies: 0
inputs: publication date
2007-09-11
=
function: Find
inputs: David O. Selznick
function: Relate
dependencies: 2
inputs: producer
backward
function: Find
inputs: Gone with the Wind
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: Gone with the Wind