Were M3 , M4 , M5 , and M6 directed by M2 's star and written by a person that M1 employed
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.directed_by ?x1 .
M6 ns:film.film.written_by ?x0
}