Did M2 write M3 and executive produce a film whose writer and director influenced a director of M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:influence.influence_node.influenced ?x2 .
?x2 ns:film.director.film M1 .
M2 ns:film.producer.films_executive_produced ?x0 .
M2 ns:film.writer.film M3
}