Was M4 executive produced by M0 's editor and producer and written by a Spanish film editor that wrote M2
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x1 a ns:film.editor .
?x1 ns:film.writer.film M2 .
?x1 ns:people.person.nationality ns:m.06mkj .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x1
}