Was M2 written by and edited by a screenwriter that M1 was influenced by
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced M1 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.written_by ?x0
}