Did a Japanese producer of M2 direct a film and write M0
SELECT count(*) WHERE {
?x0 ns:film.director.film ?x1 .
?x0 ns:film.producer.film|ns:film.production_company.films M2 .
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 a ns:film.film
}