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