Was a writer of M0 and M1 a Spanish cinematographer of a film
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film ?x1 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:people.person.nationality ns:m.06mkj .
?x1 a ns:film.film
}