Were M3 and M5 produced by a costume designer , executive produced by M4 , and directed by a editor of M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x1 ns:film.editor.film M1 .
?x1 ns:film.editor.film M2 .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.executive_produced_by M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.executive_produced_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}