Were M3 and M4 written by M1 's writer , directed by a person , and executive produced by a costume designer
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x1 ns:film.writer.film M1 .
?x2 a ns:people.person .
M3 ns:film.film.directed_by ?x2 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x1 .
M4 ns:film.film.directed_by ?x2 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x1
}