Was a film director a film producer that M2 and M3 were executive produced by and were written by
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 a ns:film.producer .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:film.producer.films_executive_produced M3 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3
}