Question: Which movie is longer, Catch-22 (the one whose script is wrote by Buck Henry) or Mamma Mia!?
Choices:
The Hunchback of Notre Dame
Pleasantville
Curse of the Golden Flower
Catch-22
Rebecca
Training Day
The Fifth Element
The Towering Inferno
Talk to Her
A Prairie Home Companion
Program:
function: Find
inputs: Buck Henry
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Catch-22
function: And
dependencies: 1
2
function: Find
inputs: Mamma Mia!
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Catch-22" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Buck Henry" .   } UNION { ?e <pred:name> "Mamma Mia!" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Catch-22