Were M3 , M5 , and M6 written by a screenwriter that M1 and M2 were influenced by and edited by M4
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.written_by ?x0 .
M5 ns:film.film.edited_by M4 .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.edited_by M4 .
M6 ns:film.film.written_by ?x0
}