Was M2 a film whose writer and star wrote M1 and edited M0
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.writer.film M1 .
M2 a ns:film.film .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.written_by ?x0
}