Were M3 and M4 produced by a film producer that M1 and M2 were executive produced by and written by
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}