Did M3 and M4 star M1 's Spanish writer and star a screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:film.writer.film M1 .
?x1 ns:people.person.nationality ns:m.06mkj .
M3 ns:film.film.starring/ns:film.performance.actor ?x0 .
M3 ns:film.film.starring/ns:film.performance.actor ?x1 .
M4 ns:film.film.starring/ns:film.performance.actor ?x0 .
M4 ns:film.film.starring/ns:film.performance.actor ?x1
}