Were M3 and M7 influenced by M4 , M5 , and M6 and influenced by a film director that M1 and M2 employed
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by M4 .
M3 ns:influence.influence_node.influenced_by M5 .
M3 ns:influence.influence_node.influenced_by M6 .
M7 ns:influence.influence_node.influenced_by ?x0 .
M7 ns:influence.influence_node.influenced_by M4 .
M7 ns:influence.influence_node.influenced_by M5 .
M7 ns:influence.influence_node.influenced_by M6
}