Question: Which one, Youth in Revolt or The Hunchback of Notre Dame (the one whose producer is Pandro S. Berman), has greater duration?
Choices:
Curse of the Golden Flower
Youth in Revolt
Training Day
Rope
Pleasantville
The Fifth Element
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Rebecca
Program:
function: Find
inputs: Youth in Revolt
function: Find
inputs: Pandro S. Berman
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: The Hunchback of Notre Dame
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Youth in Revolt" .  } UNION { ?e <pred:name> "The Hunchback of Notre Dame" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Pandro S. Berman" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Hunchback of Notre Dame