Was M2 executive produced by M3 and written by a film editor that M1 employed
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.written_by ?x0
}