Were M3 and M4 executive produced and written by a Spanish cinematographer that edited and directed M1
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.director.film M1 .
?x0 ns:film.editor.film M1 .
?x0 ns:people.person.nationality ns:m.06mkj .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x0
}