Was a film director influenced by a screenwriter and influenced by M3 's Spanish producer
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 a ns:film.writer .
?x2 ns:film.producer.film|ns:film.production_company.films M3 .
?x2 ns:people.person.nationality ns:m.06mkj
}