Was M3 produced by M4 and written by a film producer employed by a production company and employed by M1
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x1 a ns:film.production_company .
M3 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M3 ns:film.film.written_by ?x0
}