Question: Which film has the longer running time, Quills or The Three Musketeers (whose producer is Joseph Barbera)?
Choices:
Talk to Her
The Hunchback of Notre Dame
Pleasantville
The Three Musketeers
Training Day
The Towering Inferno
The Fifth Element
A Prairie Home Companion
Quills
Curse of the Golden Flower
Program:
function: Find
inputs: Quills
function: Find
inputs: Joseph Barbera
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quills" .  } UNION { ?e <pred:name> "The Three Musketeers" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Joseph Barbera" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Quills