Did M2 produce and executive produce a film edited by and written by M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.edited_by M1 .
?x0 ns:film.film.written_by M1 .
M2 ns:film.producer.films_executive_produced ?x0 .
M2 ns:film.producer.film|ns:film.production_company.films ?x0
}