Were M3 , M5 , and M6 written by a Spanish writer of M0 and M1 and directed by M4
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:people.person.nationality ns:m.06mkj .
M3 ns:film.film.directed_by M4 .
M3 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.directed_by M4 .
M6 ns:film.film.written_by ?x0
}