Were M2 , M5 , and M6 written by M3 and M4 and directed by a film director that a film producer influenced
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x1 a ns:film.producer .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.written_by M3 .
M5 ns:film.film.written_by M4 .
M6 ns:film.film.directed_by ?x0 .
M6 ns:film.film.written_by M3 .
M6 ns:film.film.written_by M4
}