Were M2 and M5 influenced by M0 's writer , influenced by a character , and influenced by M3 and M4
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x1 a ns:fictional_universe.fictional_character .
M2 ns:influence.influence_node.influenced_by ?x0 .
M2 ns:influence.influence_node.influenced_by ?x1 .
M2 ns:influence.influence_node.influenced_by M3 .
M2 ns:influence.influence_node.influenced_by M4 .
M5 ns:influence.influence_node.influenced_by ?x0 .
M5 ns:influence.influence_node.influenced_by ?x1 .
M5 ns:influence.influence_node.influenced_by M3 .
M5 ns:influence.influence_node.influenced_by M4
}