Was M2 written by M1 's costume designer , art director , and executive producer and written by M0 's writer
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x1 ns:film.film_art_director.films_art_directed M1 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M1 .
?x1 ns:film.producer.films_executive_produced M1 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by ?x1
}