Was M0 a person that M2 and M3 were written by and M4 and M5 starred
SELECT count(*) WHERE {
M0 a ns:people.person .
M0 ns:film.actor.film/ns:film.performance.film M4 .
M0 ns:film.actor.film/ns:film.performance.film M5 .
M0 ns:film.writer.film M2 .
M0 ns:film.writer.film M3
}