Was a Spanish screenwriter that wrote M2 and M3 and executive produced M4 a cinematographer
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 a ns:film.writer .
?x0 ns:film.producer.films_executive_produced M4 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3 .
?x0 ns:people.person.nationality ns:m.06mkj
}