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