Was M6 produced by a actor influenced by M1 and M2 and influenced by M3 , M4 , and M5
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:influence.influence_node.influenced_by M3 .
?x0 ns:influence.influence_node.influenced_by M4 .
?x0 ns:influence.influence_node.influenced_by M5 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}