Was M4 produced by M5 , written by a costume designer , and executive produced by a star of M0 , M1 , and M2
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x1 a ns:film.film_costumer_designer .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies M5 .
M4 ns:film.film.written_by ?x1
}