Were M2 and M5 written by a Chinese employee of a production company , produced by M3 , and directed by M4
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x0 ns:people.person.nationality ns:m.0d05w3 .
?x1 a ns:film.production_company .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M2 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M5 ns:film.film.written_by ?x0
}