Were M4 and M6 written by M5 and produced by a Japanese actor of M1 , M2 , and M3
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M1 .
?x0 ns:film.actor.film/ns:film.performance.character M2 .
?x0 ns:film.actor.film/ns:film.performance.character M3 .
?x0 ns:people.person.nationality ns:m.03_3d .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M4 ns:film.film.written_by M5 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M6 ns:film.film.written_by M5
}