Was M3 written by a costume designer , directed by a male executive producer of M1 , and written by M4 and M5
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:people.person.gender ns:m.05zppz .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by M4 .
M3 ns:film.film.written_by M5
}