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