Was M0 produced by M2 , edited by M3 , edited by M4 and M5 , and written by M1
SELECT count(*) WHERE {
M0 ns:film.film.edited_by M3 .
M0 ns:film.film.edited_by M4 .
M0 ns:film.film.edited_by M5 .
M0 ns:film.film.produced_by|ns:film.film.production_companies M2 .
M0 ns:film.film.written_by M1
}