Were M2 and M3 directed by and written by a Spanish cinematographer of a film
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film ?x1 .
?x0 ns:people.person.nationality ns:m.06mkj .
?x1 a ns:film.film .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.written_by ?x0
}