Complex sentence: The film was directed, produced and co-written by Stanley Kubrick, and was his last film.
Split into simpler sentences: The film was directed, produced and co-written by Stanley Kubrick. It was was his last film.