Were M4 and M5 founded by a screenwriter that M1 and M2 starred and founded by M3 's actor
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x1 ns:film.actor.film/ns:film.performance.character M3 .
M4 ns:organization.organization.founders ?x0 .
M4 ns:organization.organization.founders ?x1 .
M5 ns:organization.organization.founders ?x0 .
M5 ns:organization.organization.founders ?x1
}