Was a male screenwriter that M5 was directed by and M3 was produced by a Japanese writer of M1
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.director.film M5 .
?x0 ns:film.producer.film|ns:film.production_company.films M3 .
?x0 ns:film.writer.film M1 .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.03_3d
}