Was a screenwriter a film producer that a producer of M2 and M3 influenced and was influenced by
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M3
}