Did M1 and M7 influence M2 , M3 , and M4 , influence a actor , and influence M5 and M6
SELECT count(*) WHERE {
?x0 a ns:film.actor .
M1 ns:influence.influence_node.influenced ?x0 .
M1 ns:influence.influence_node.influenced M2 .
M1 ns:influence.influence_node.influenced M3 .
M1 ns:influence.influence_node.influenced M4 .
M1 ns:influence.influence_node.influenced M5 .
M1 ns:influence.influence_node.influenced M6 .
M7 ns:influence.influence_node.influenced ?x0 .
M7 ns:influence.influence_node.influenced M2 .
M7 ns:influence.influence_node.influenced M3 .
M7 ns:influence.influence_node.influenced M4 .
M7 ns:influence.influence_node.influenced M5 .
M7 ns:influence.influence_node.influenced M6
}