Was M2 directed by M4 , executive produced by a film director , written by M3 , and produced by M1 's employee
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M2 ns:film.film.written_by M3
}