Question: Which one is longer, The History Boys or Antwone Fisher (directed by Denzel Washington).
Choices:
Rebecca
Antwone Fisher
Training Day
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
Talk to Her
The Hunchback of Notre Dame
Pleasantville
The Fifth Element
Program:
function: Find
inputs: The History Boys
function: Find
inputs: Denzel Washington
function: Relate
dependencies: 1
inputs: director
backward
function: Find
inputs: Antwone Fisher
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The History Boys" .  } UNION { ?e <pred:name> "Antwone Fisher" . ?e <director> ?e_1 . ?e_1 <pred:name> "Denzel Washington" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Antwone Fisher