Was M2 written by a Japanese screenwriter , directed by M4 and M5 , and written by M3
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:people.person.nationality ns:m.03_3d .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.directed_by M5 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3
}