Was M0 's prequel produced by M1 , produced by a Spanish film director , and produced by M2
SELECT count(*) WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M2 .
?x0 ns:film.film.sequel M0 .
?x1 a ns:film.director .
?x1 ns:people.person.nationality ns:m.06mkj
}