Was M3 directed by M1 's star , directed by M2 's editor , and written by a company 's employee
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x1 a ns:business.employer .
?x2 ns:film.actor.film/ns:film.performance.film M1 .
?x3 ns:film.editor.film M2 .
M3 ns:film.film.directed_by ?x2 .
M3 ns:film.film.directed_by ?x3 .
M3 ns:film.film.written_by ?x0
}