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