Was M2 a character that was influenced by M4 , influenced a screenwriter , and was influenced by M1 's writer
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:film.writer.film M1 .
M2 a ns:fictional_universe.fictional_character .
M2 ns:influence.influence_node.influenced ?x0 .
M2 ns:influence.influence_node.influenced_by ?x1 .
M2 ns:influence.influence_node.influenced_by M4
}