Was M1 directed by M2 and directed by M0 's writer , costume designer , executive producer , and cinematographer
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.film_costumer_designer.costume_design_for_film M0 .
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:film.writer.film M0 .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.directed_by M2
}