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