Were M2 , M5 , M6 , and M7 produced by a Spanish film director 's parent and written by M3 and M4
SELECT count(*) WHERE {
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 .
?x1 a ns:film.director .
?x1 ns:people.person.nationality ns:m.06mkj .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.written_by M3 .
M5 ns:film.film.written_by M4 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M6 ns:film.film.written_by M3 .
M6 ns:film.film.written_by M4 .
M7 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M7 ns:film.film.written_by M3 .
M7 ns:film.film.written_by M4
}