Was a director and writer of M1 a Spanish actor that influenced M2 , M3 , and M4
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.director.film M1 .
?x0 ns:film.writer.film M1 .
?x0 ns:influence.influence_node.influenced M2 .
?x0 ns:influence.influence_node.influenced M3 .
?x0 ns:influence.influence_node.influenced M4 .
?x0 ns:people.person.nationality ns:m.06mkj
}