Question: Is "The Birds" or "The Da Vinci Code," which is based on a book, longer?
Choices:
The Birds
The Hunchback of Notre Dame
Talk to Her
The Fifth Element
Curse of the Golden Flower
Pleasantville
Training Day
Rebecca
The Towering Inferno
The Da Vinci Code
Answer: The Da Vinci Code
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Birds" .  } UNION { ?e <pred:name> "The Da Vinci Code" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Birds
function: Find
inputs: film based on literature
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: The Da Vinci Code
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater