Did M1 distribute a prequel of M0 and produce M2
SELECT count(*) WHERE {
?x0 ns:film.film.sequel M0 .
M1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x0 .
M1 ns:film.producer.film|ns:film.production_company.films M2
}