Did M2 write M3 and M4 and executive produce a film produced by a production company
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x1 a ns:film.production_company .
M2 ns:film.producer.films_executive_produced ?x0 .
M2 ns:film.writer.film M3 .
M2 ns:film.writer.film M4
}