Was M2 written by M3 , produced by a Japanese film producer , and produced by M4 and M5
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.nationality ns:m.03_3d .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M5 .
M2 ns:film.film.written_by M3
}