Was M3 produced by a screenwriter that M1 was influenced by and a person was influenced by
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced M1 .
?x1 a ns:people.person .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}