Did M1 produce , direct , write , and executive produce a prequel of M0
SELECT count(*) WHERE {
?x0 ns:film.film.sequel M0 .
M1 ns:film.director.film ?x0 .
M1 ns:film.producer.films_executive_produced ?x0 .
M1 ns:film.producer.film|ns:film.production_company.films ?x0 .
M1 ns:film.writer.film ?x0
}