Were M4 and M5 produced by , directed by , and written by a director of M0 , M1 , M2 , and M3
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.director.film M3 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.written_by ?x0
}