Was M3 directed and edited by a writer and executive producer of M0 , M1 , and M2
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.edited_by ?x0
}