Was M5 edited by and written by a Spanish person that played M2 , M3 , and M4
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.actor.film/ns:film.performance.character M2 .
?x0 ns:film.actor.film/ns:film.performance.character M3 .
?x0 ns:film.actor.film/ns:film.performance.character M4 .
?x0 ns:people.person.nationality ns:m.06mkj .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.written_by ?x0
}