Was M2 executive produced by M3 , produced by a Spanish cinematographer and writer of M0 , and directed by M4
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.nationality ns:m.06mkj .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}