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