Did M2 and M3 write and produce a film produced by and edited by a film director
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x1 a ns:film.director .
M2 ns:film.producer.film|ns:film.production_company.films ?x0 .
M2 ns:film.writer.film ?x0 .
M3 ns:film.producer.film|ns:film.production_company.films ?x0 .
M3 ns:film.writer.film ?x0
}