Was M2 executive produced by a costume designer and writer of M0 and directed by a actor
SELECT count(*) WHERE {
?x0 ns:film.film_costumer_designer.costume_design_for_film M0 .
?x0 ns:film.writer.film M0 .
?x1 a ns:film.actor .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.executive_produced_by ?x0
}