Was M1 executive produced by M2 , written by M0 's costume designer , and written by M3
SELECT count(*) WHERE {
?x0 ns:film.film_costumer_designer.costume_design_for_film M0 .
M1 ns:film.film.executive_produced_by M2 .
M1 ns:film.film.written_by ?x0 .
M1 ns:film.film.written_by M3
}