Did a producer and art director of M5 edit M0 , M1 , M2 , and M3 and write M4
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.editor.film M2 .
?x0 ns:film.editor.film M3 .
?x0 ns:film.film_art_director.films_art_directed M5 .
?x0 ns:film.producer.film|ns:film.production_company.films M5 .
?x0 ns:film.writer.film M4
}