Was M0 's writer influenced by a character and influenced by M2 's producer , director , and editor
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 a ns:fictional_universe.fictional_character .
?x2 ns:film.director.film M2 .
?x2 ns:film.editor.film M2 .
?x2 ns:film.producer.film|ns:film.production_company.films M2
}