Question: Which film is longer, The Girl with the Dragon Tattoo (screenplay by Steven Zaillian) or Valentine's Day?
Choices:
Talk to Her
Training Day
Curse of the Golden Flower
The Girl with the Dragon Tattoo
Rebecca
Valentine's Day
The Hunchback of Notre Dame
The Towering Inferno
Pleasantville
The Fifth Element
Program:
function: Find
inputs: Valentine's Day
function: Find
inputs: Steven Zaillian
function: Relate
dependencies: 1
inputs: screenwriter
backward
function: Find
inputs: The Girl with the Dragon Tattoo
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Valentine's Day" .  } UNION { ?e <pred:name> "The Girl with the Dragon Tattoo" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Steven Zaillian" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Girl with the Dragon Tattoo