Did M3 star a writer and editor of M0 and M1 and star a actor
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x1 a ns:film.actor .
M3 ns:film.film.starring/ns:film.performance.actor ?x0 .
M3 ns:film.film.starring/ns:film.performance.actor ?x1
}