Was M2 produced by M3 and produced by a film 's Japanese writer
SELECT count(*) WHERE {
?x0 ns:film.writer.film ?x1 .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 a ns:film.film .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3
}