Were M2 , M4 , M5 , M6 , and M7 written by a Spanish person and executive produced by M3
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.nationality ns:m.06mkj .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.written_by ?x0 .
M4 ns:film.film.executive_produced_by M3 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.executive_produced_by M3 .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.executive_produced_by M3 .
M6 ns:film.film.written_by ?x0 .
M7 ns:film.film.executive_produced_by M3 .
M7 ns:film.film.written_by ?x0
}