Did M0 and M4 direct and write M1 , M2 , and M3
SELECT count(*) WHERE {
M0 ns:film.director.film M1 .
M0 ns:film.director.film M2 .
M0 ns:film.director.film M3 .
M0 ns:film.writer.film M1 .
M0 ns:film.writer.film M2 .
M0 ns:film.writer.film M3 .
M4 ns:film.director.film M1 .
M4 ns:film.director.film M2 .
M4 ns:film.director.film M3 .
M4 ns:film.writer.film M1 .
M4 ns:film.writer.film M2 .
M4 ns:film.writer.film M3
}