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