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