Was M0 a screenwriter that M2 and M3 were influenced by and M4 , M5 , and M6 influenced
SELECT count(*) WHERE {
M0 a ns:film.writer .
M0 ns:influence.influence_node.influenced M2 .
M0 ns:influence.influence_node.influenced M3 .
M0 ns:influence.influence_node.influenced_by M4 .
M0 ns:influence.influence_node.influenced_by M5 .
M0 ns:influence.influence_node.influenced_by M6
}