Were M3 and M4 written by M0 's director and editor and written by a Spanish executive producer of M1
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.editor.film M0 .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:people.person.nationality ns:m.06mkj .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x1 .
M4 ns:film.film.written_by ?x0 .
M4 ns:film.film.written_by ?x1
}