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