Did a production company 's employee write M0 and write M1 's prequel
SELECT count(*) WHERE {
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x2 .
?x1 ns:film.film.sequel M1 .
?x2 a ns:film.production_company
}