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