Did M2 , M3 , M4 , and M5 influence a film director and influence a writer and executive producer of M0
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:film.writer.film M0 .
?x1 a ns:film.director .
M2 ns:influence.influence_node.influenced ?x0 .
M2 ns:influence.influence_node.influenced ?x1 .
M3 ns:influence.influence_node.influenced ?x0 .
M3 ns:influence.influence_node.influenced ?x1 .
M4 ns:influence.influence_node.influenced ?x0 .
M4 ns:influence.influence_node.influenced ?x1 .
M5 ns:influence.influence_node.influenced ?x0 .
M5 ns:influence.influence_node.influenced ?x1
}