Did M0 executive produce M4 , direct M5 , write M1 and M2 , and write M3
SELECT count(*) WHERE {
M0 ns:film.director.film M5 .
M0 ns:film.producer.films_executive_produced M4 .
M0 ns:film.writer.film M1 .
M0 ns:film.writer.film M2 .
M0 ns:film.writer.film M3
}