Did M3 executive produce a film that M1 and M2 distributed and write M4
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M1 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
M3 ns:film.producer.films_executive_produced ?x0 .
M3 ns:film.writer.film M4
}